WordPress.org

Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r8626 r8175  
    88$messages[3] = __('Custom field deleted.');
    99$messages[4] = __('Post updated.');
    10 
    11 if ( isset($_GET['revision']) )
    12     $messages[5] = sprintf( __('Post restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) );
     10$messages[5] = sprintf( __('Post restored to revision from %s'), wp_post_revision_title( $_GET['revision'], false ) );
    1311
    1412$notice = false;
     
    7472<input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" />
    7573<input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" />
    76 <input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" />
     74<input name="referredby" type="hidden" id="referredby" value="<?php
     75if ( !empty($_REQUEST['popupurl']) )
     76    echo clean_url(stripslashes($_REQUEST['popupurl']));
     77else if ( strpos( wp_get_referer(), '/wp-admin/' ) === false && $post_ID && url_to_postid(wp_get_referer()) === $post_ID  )
     78    echo 'redo';
     79else
     80    echo clean_url(stripslashes(wp_get_referer()));
     81?>" />
    7782<?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?>
    7883
     
    111116
    112117<?php if ( current_user_can( 'publish_posts' ) ) : ?>
    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>
     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>
    114119<?php endif; ?>
    115120<?php
Note: See TracChangeset for help on using the changeset viewer.