Make WordPress Core

Ticket #7010: 7010.diff

File 7010.diff, 2.1 KB (added by mdawaffe, 18 years ago)
  • wp-admin/edit-form-advanced.php

     
    5252
    5353$form_prevstatus = '<input type="hidden" name="prev_status" value="' . attribute_escape( $post->post_status ) . '" />';
    5454
    55 $form_trackback = '<input type="text" name="trackback_url" style="width: 415px" id="trackback" tabindex="7" value="'. attribute_escape( str_replace("\n", ' ', $post->to_ping) ) .'" />';
    56 
    57 if ('' != $post->pinged) {
    58         $pings = '<p>'. __('Already pinged:') . '</p><ul>';
    59         $already_pinged = explode("\n", trim($post->pinged));
    60         foreach ($already_pinged as $pinged_url) {
    61                 $pings .= "\n\t<li>" . wp_specialchars($pinged_url) . "</li>";
    62         }
    63         $pings .= '</ul>';
    64 }
    65 
    6655$saveasdraft = '<input name="save" type="submit" id="save" class="button" tabindex="3" value="' . attribute_escape( __('Save and Continue Editing') ) . '" />';
    6756
    6857?>
     
    284273add_meta_box('postexcerpt', __('Excerpt'), 'post_excerpt_meta_box', 'post', 'advanced', 'core');
    285274
    286275function post_trackback_meta_box($post) {
     276        $form_trackback = '<input type="text" name="trackback_url" style="width: 415px" id="trackback" tabindex="7" value="'. attribute_escape( str_replace("\n", ' ', $post->to_ping) ) .'" />';
     277        if ('' != $post->pinged) {
     278                $pings = '<p>'. __('Already pinged:') . '</p><ul>';
     279                $already_pinged = explode("\n", trim($post->pinged));
     280                foreach ($already_pinged as $pinged_url) {
     281                        $pings .= "\n\t<li>" . wp_specialchars($pinged_url) . "</li>";
     282                }
     283                $pings .= '</ul>';
     284        }
     285
    287286?>
    288287<p><label for="trackback"><?php _e('Send trackbacks to:'); ?></label> <?php echo $form_trackback; ?><br /> (<?php _e('Separate multiple URLs with spaces'); ?>)</p>
    289288<p><?php _e('Trackbacks are a way to notify legacy blog systems that you&#8217;ve linked to them. If you link other WordPress blogs they&#8217;ll be notified automatically using <a href="http://codex.wordpress.org/Introduction_to_Blogging#Managing_Comments" target="_blank">pingbacks</a>, no other action necessary.'); ?></p>