Hide post title field in DFW if title is not supported by the current post type or missing, fixes $18568

git-svn-id: https://develop.svn.wordpress.org/trunk@18828 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2011-09-29 22:59:49 +00:00
parent 4e081d3171
commit cfc8bd3d53
4 changed files with 10 additions and 6 deletions

View File

@@ -677,8 +677,10 @@ class WP_Editor {
</div>
<div id="wp-fullscreen-wrap" style="width:<?php echo $dfw_width; ?>px;">
<?php if ( post_type_supports($post->post_type, 'title') ) { ?>
<label id="wp-fullscreen-title-prompt-text" for="wp-fullscreen-title"><?php echo apply_filters( 'enter_title_here', __( 'Enter title here' ), $post ); ?></label>
<input type="text" id="wp-fullscreen-title" value="" autocomplete="off" />
<?php } ?>
<div id="wp-fullscreen-container">
<textarea id="wp_mce_fullscreen"></textarea>