Check if the post type supports title. see #24423.
git-svn-id: https://develop.svn.wordpress.org/trunk@25461 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6f09a65bf9
commit
3af290b2c8
@ -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
Block a user