Changes from trunk/wp-admin/edit-form-advanced.php at r8175 to branches/2.6/wp-admin/edit-form-advanced.php at r8626
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.6/wp-admin/edit-form-advanced.php
r8175 r8626 8 8 $messages[3] = __('Custom field deleted.'); 9 9 $messages[4] = __('Post updated.'); 10 $messages[5] = sprintf( __('Post restored to revision from %s'), wp_post_revision_title( $_GET['revision'], false ) ); 10 11 if ( isset($_GET['revision']) ) 12 $messages[5] = sprintf( __('Post restored to revision from %s'), wp_post_revision_title( (int) $_GET['revision'], false ) ); 11 13 12 14 $notice = false; … … 72 74 <input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" /> 73 75 <input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" /> 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 ?>" /> 76 <input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" /> 82 77 <?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?> 83 78 … … 116 111 117 112 <?php if ( current_user_can( 'publish_posts' ) ) : ?> 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>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> 119 114 <?php endif; ?> 120 115 <?php
Note: See TracChangeset
for help on using the changeset viewer.