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