WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r8626 r8034  
    66$messages[3] = __('Custom field deleted.');
    77$messages[4] = __('Page updated.');
    8 
    9 if ( isset($_GET['revision']) )
    10     $messages[5] = sprintf( __('Page restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) );
    118
    129$notice = false;
     
    3128$user_ID = (int) $user_ID;
    3229
     30$sendto = clean_url(stripslashes(wp_get_referer()));
     31
     32if ( 0 != $post_ID && $sendto == get_permalink($post_ID) )
     33    $sendto = 'redo';
    3334?>
    3435
     
    5758<input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" />
    5859<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" />
    59 <input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" />
     60<input name="referredby" type="hidden" id="referredby" value="<?php
     61if ( strpos( wp_get_referer(), '/wp-admin/' ) === false && $post_ID && url_to_postid(wp_get_referer()) === $post_ID )
     62    echo 'redo';
     63else
     64    echo clean_url(stripslashes(wp_get_referer()));
     65?>" />
    6066<?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>
    6167
     
    9096</p>
    9197<?php if ( current_user_can( 'publish_posts' ) ) : ?>
    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>
     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>
    9399<?php endif; ?>
    94100
Note: See TracChangeset for help on using the changeset viewer.