WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r8175 r8626  
    88$messages[3] = __('Custom field deleted.');
    99$messages[4] = __('Post updated.');
    10 $messages[5] = sprintf( __('Post restored to revision from %s'), wp_post_revision_title( $_GET['revision'], false ) );
     10
     11if ( isset($_GET['revision']) )
     12    $messages[5] = sprintf( __('Post restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) );
    1113
    1214$notice = false;
     
    7274<input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" />
    7375<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" />
    74 <input name="referredby" type="hidden" id="referredby" value="<?php
    75 if ( !empty($_REQUEST['popupurl']) )
    76     echo clean_url(stripslashes($_REQUEST['popupurl']));
    77 else if ( strpos( wp_get_referer(), '/wp-admin/' ) === false && $post_ID && url_to_postid(wp_get_referer()) === $post_ID  )
    78     echo 'redo';
    79 else
    80     echo clean_url(stripslashes(wp_get_referer()));
    81 ?>" />
     76<input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" />
    8277<?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>
    8378
     
    116111
    117112<?php if ( current_user_can( 'publish_posts' ) ) : ?>
    118 <p><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> tabindex="4" /> <?php _e('Keep this post private') ?></label></p>
     113<p id="private-checkbox"><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> tabindex="4" /> <?php _e('Keep this post private') ?></label></p>
    119114<?php endif; ?>
    120115<?php
Note: See TracChangeset for help on using the changeset viewer.