Make WordPress Core


Ignore:
Timestamp:
09/29/2011 10:59:49 PM (15 years ago)
Author:
azaozz
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-editor.php

    r18799 r18828  
    678678
    679679    <div id="wp-fullscreen-wrap" style="width:<?php echo $dfw_width; ?>px;">
     680        <?php if ( post_type_supports($post->post_type, 'title') ) { ?>
    680681        <label id="wp-fullscreen-title-prompt-text" for="wp-fullscreen-title"><?php echo apply_filters( 'enter_title_here', __( 'Enter title here' ), $post ); ?></label>
    681682        <input type="text" id="wp-fullscreen-title" value="" autocomplete="off" />
     683        <?php } ?>
    682684
    683685        <div id="wp-fullscreen-container">
Note: See TracChangeset for help on using the changeset viewer.