Changes from branches/2.6/wp-admin/edit-page-form.php at r8626 to trunk/wp-admin/edit-page-form.php at r8034
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-page-form.php
r8626 r8034 6 6 $messages[3] = __('Custom field deleted.'); 7 7 $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 ) );11 8 12 9 $notice = false; … … 31 28 $user_ID = (int) $user_ID; 32 29 30 $sendto = clean_url(stripslashes(wp_get_referer())); 31 32 if ( 0 != $post_ID && $sendto == get_permalink($post_ID) ) 33 $sendto = 'redo'; 33 34 ?> 34 35 … … 57 58 <input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" /> 58 59 <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 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 ?>" /> 60 66 <?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?> 61 67 … … 90 96 </p> 91 97 <?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> 93 99 <?php endif; ?> 94 100
Note: See TracChangeset
for help on using the changeset viewer.