WordPress.org

Make WordPress Core

Ticket #18568: 18568.2.diff

File 18568.2.diff, 1.0 KB (added by jtsternberg, 7 years ago)
  • wp-includes/class-wp-editor.php

     
    644644        </div>
    645645
    646646        <div id="wp-fullscreen-wrap" style="width:<?php echo $dfw_width; ?>px;">
    647                 <label id="wp-fullscreen-title-prompt-text" for="wp-fullscreen-title"><?php echo apply_filters( 'enter_title_here', __( 'Enter title here' ), $post ); ?></label>
    648                 <input type="text" id="wp-fullscreen-title" value="" autocomplete="off" />
     647                <?php if ( post_type_supports($post->post_type, 'title') ) { ?>
     648                        <label id="wp-fullscreen-title-prompt-text" for="wp-fullscreen-title"><?php echo apply_filters( 'enter_title_here', __( 'Enter title here' ), $post ); ?></label>
     649                        <input type="text" id="wp-fullscreen-title" value="" autocomplete="off" />
     650                <?php } else { ?>
     651                        <input style="display:none" id="wp-fullscreen-title"/>
     652                <?php } ?>
    649653
    650654                <div id="wp-fullscreen-container">
    651655                        <textarea id="wp_mce_fullscreen"></textarea>