Make WordPress Core

Changeset 7967


Ignore:
Timestamp:
05/20/2008 11:46:31 PM (18 years ago)
Author:
ryan
Message:

Fix trackback meta box. Props mdawaffe. fixes #7010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-advanced.php

    r7956 r7967  
    5252
    5353$form_prevstatus = '<input type="hidden" name="prev_status" value="' . attribute_escape( $post->post_status ) . '" />';
    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 }
    6554
    6655$saveasdraft = '<input name="save" type="submit" id="save" class="button" tabindex="3" value="' . attribute_escape( __('Save and Continue Editing') ) . '" />';
     
    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>
Note: See TracChangeset for help on using the changeset viewer.