WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r8034 r8626  
    66$messages[3] = __('Custom field deleted.');
    77$messages[4] = __('Page updated.');
     8
     9if ( isset($_GET['revision']) )
     10    $messages[5] = sprintf( __('Page restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) );
    811
    912$notice = false;
     
    2831$user_ID = (int) $user_ID;
    2932
    30 $sendto = clean_url(stripslashes(wp_get_referer()));
    31 
    32 if ( 0 != $post_ID && $sendto == get_permalink($post_ID) )
    33     $sendto = 'redo';
    3433?>
    3534
     
    5857<input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" />
    5958<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" />
    60 <input name="referredby" type="hidden" id="referredby" value="<?php
    61 if ( strpos( wp_get_referer(), '/wp-admin/' ) === false && $post_ID && url_to_postid(wp_get_referer()) === $post_ID )
    62     echo 'redo';
    63 else
    64     echo clean_url(stripslashes(wp_get_referer()));
    65 ?>" />
     59<input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" />
    6660<?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>
    6761
     
    9690</p>
    9791<?php if ( current_user_can( 'publish_posts' ) ) : ?>
    98 <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 page private') ?></label></p>
     92<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 page private') ?></label></p>
    9993<?php endif; ?>
    10094
Note: See TracChangeset for help on using the changeset viewer.