Changes from branches/2.6/wp-admin/edit-form-advanced.php at r8626 to trunk/wp-admin/edit-form-advanced.php at r8175
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-form-advanced.php
r8626 r8175 8 8 $messages[3] = __('Custom field deleted.'); 9 9 $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 ) ); 13 11 14 12 $notice = false; … … 74 72 <input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" /> 75 73 <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 75 if ( !empty($_REQUEST['popupurl']) ) 76 echo clean_url(stripslashes($_REQUEST['popupurl'])); 77 else if ( strpos( wp_get_referer(), '/wp-admin/' ) === false && $post_ID && url_to_postid(wp_get_referer()) === $post_ID ) 78 echo 'redo'; 79 else 80 echo clean_url(stripslashes(wp_get_referer())); 81 ?>" /> 77 82 <?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?> 78 83 … … 111 116 112 117 <?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> 114 119 <?php endif; ?> 115 120 <?php
Note: See TracChangeset
for help on using the changeset viewer.