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:
Sergey Biryukov 2013-09-16 20:50:11 +00:00
parent 6f09a65bf9
commit 3af290b2c8
1 changed files with 1 additions and 1 deletions

View File

@ -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>