WordPress.org

Make WordPress Core

Ticket #11469: 11469-3.diff

File 11469-3.diff, 1.0 KB (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" /> 
    178 </div> 
     175 
     176<?php 
     177$titlediv = "<div id=\"titlewrap\">"; 
     178$titlediv .= "  <label class=\"screen-reader-text\" for=\"title\">"._e('Title')."</label>"; 
     179$titlediv .= "  <input type=\"text\" name=\"post_title\" size=\"30\" tabindex=\"1\" value=\"".esc_attr( htmlspecialchars( $post->post_title ) )."\" id=\"title\" autocomplete=\"off\" />"; 
     180$titlediv .= "</div>"; 
     181 
     182echo apply_filters('post-titlediv', $titlediv); 
     183?> 
     184 
    179185<div class="inside"> 
    180186<?php 
    181187$sample_permalink_html = get_sample_permalink_html($post->ID);