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:
Sergey Biryukov 2013-09-16 20:51:09 +00:00
parent d362dc1e49
commit 3137e83126
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();
?>
<?php if ( '' === $post->post_title ) : ?>
<?php if ( post_type_supports( $post_type, 'title' ) && '' === $post->post_title ) : ?>
<script type="text/javascript">
try{document.post.title.focus();}catch(e){}
</script>