Ticket #7010: 7010.diff
| File 7010.diff, 2.1 KB (added by , 18 years ago) |
|---|
-
wp-admin/edit-form-advanced.php
52 52 53 53 $form_prevstatus = '<input type="hidden" name="prev_status" value="' . attribute_escape( $post->post_status ) . '" />'; 54 54 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 66 55 $saveasdraft = '<input name="save" type="submit" id="save" class="button" tabindex="3" value="' . attribute_escape( __('Save and Continue Editing') ) . '" />'; 67 56 68 57 ?> … … 284 273 add_meta_box('postexcerpt', __('Excerpt'), 'post_excerpt_meta_box', 'post', 'advanced', 'core'); 285 274 286 275 function 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 287 286 ?> 288 287 <p><label for="trackback"><?php _e('Send trackbacks to:'); ?></label> <?php echo $form_trackback; ?><br /> (<?php _e('Separate multiple URLs with spaces'); ?>)</p> 289 288 <p><?php _e('Trackbacks are a way to notify legacy blog systems that you’ve linked to them. If you link other WordPress blogs they’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>