Check if the post type supports title. see #24423.
Built from https://develop.svn.wordpress.org/trunk@25461 git-svn-id: http://core.svn.wordpress.org/trunk@25382 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d362dc1e49
commit
3137e83126
|
@ -469,7 +469,7 @@ if ( post_type_supports( $post_type, 'comments' ) )
|
||||||
wp_comment_reply();
|
wp_comment_reply();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<?php if ( '' === $post->post_title ) : ?>
|
<?php if ( post_type_supports( $post_type, 'title' ) && '' === $post->post_title ) : ?>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
try{document.post.title.focus();}catch(e){}
|
try{document.post.title.focus();}catch(e){}
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue