Make WordPress Core

Ticket #35123: 35123.patch

File 35123.patch, 1.6 KB (added by afercia, 11 years ago)
  • src/wp-admin/includes/meta-boxes.php

     
    592592 * @param object $post
    593593 */
    594594function post_trackback_meta_box($post) {
    595         $form_trackback = '<input type="text" name="trackback_url" id="trackback_url" class="code" value="'. esc_attr( str_replace("\n", ' ', $post->to_ping) ) .'" />';
     595        $form_trackback = '<input type="text" name="trackback_url" id="trackback_url" class="code" value="' .
     596                esc_attr( str_replace( "\n", ' ', $post->to_ping ) ) . '" aria-describedby="trackback-url-desc" />';
    596597        if ('' != $post->pinged) {
    597598                $pings = '<p>'. __('Already pinged:') . '</p><ul>';
    598599                $already_pinged = explode("\n", trim($post->pinged));
    … …  
    603604        }
    604605
    605606?>
    606 <p><label for="trackback_url"><?php _e('Send trackbacks to:'); ?></label> <?php echo $form_trackback; ?><br /> (<?php _e('Separate multiple URLs with spaces'); ?>)</p>
     607<p>
     608        <label for="trackback_url"><?php _e( 'Send trackbacks to:' ); ?></label>
     609        <?php echo $form_trackback; ?>
     610</p>
     611<p id="trackback-url-desc" class="howto"><?php _e( 'Separate multiple URLs with spaces' ); ?></p>
    607612<p><?php _e('Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. If you link other WordPress sites, they&#8217;ll be notified automatically using <a href="https://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">pingbacks</a>, no other action necessary.'); ?></p>
    608613<?php
    609614if ( ! empty($pings) )