WordPress.org

Make WordPress Core

Ticket #11469: 11469-4.diff

File 11469-4.diff, 1019 bytes (added by johnl1479, 4 years ago)
  • edit-form-advanced.php

     
    172172<div id="post-body"> 
    173173<div id="post-body-content"> 
    174174<div id="titlediv"> 
    175 <div id="titlewrap"> 
    176         <label class="screen-reader-text" for="title"><?php _e('Title') ?></label> 
    177         <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" /> 
     175 
     176<?php 
     177$posttitle = esc_attr( htmlspecialchars( $post->post_title ) ); 
     178$titlediv =<<<TITLEDIV 
     179<div id='titlewrap'> 
     180        <label class='screen-reader-text' for='title'>"__('Title')"</label> 
     181        <input type='text' name='post_title' size='30' tabindex='1' value='$posttitle' id='title' autocomplete='off' /> 
    178182</div> 
     183TITLEDIV; 
     184 
     185echo apply_filters('post-titlediv', $titlediv); 
     186?> 
     187 
    179188<div class="inside"> 
    180189<?php 
    181190$sample_permalink_html = get_sample_permalink_html($post->ID);