Changeset 8625 for trunk/wp-admin/edit-page-form.php
- Timestamp:
- 08/12/2008 08:58:00 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-page-form.php
r8600 r8625 35 35 $user_ID = (int) $user_ID; 36 36 37 $sendto = clean_url(stripslashes(wp_get_referer()));38 39 if ( 0 != $post_ID && $sendto == get_permalink($post_ID) )40 $sendto = 'redo';41 37 ?> 42 38 … … 65 61 <input type="hidden" id="post_type" name="post_type" value="<?php echo $post->post_type ?>" /> 66 62 <input type="hidden" id="original_post_status" name="original_post_status" value="<?php echo $post->post_status ?>" /> 67 <input name="referredby" type="hidden" id="referredby" value="<?php 68 if ( strpos( wp_get_referer(), '/wp-admin/' ) === false && $post_ID && url_to_postid(wp_get_referer()) == $post_ID ) 69 echo 'redo'; 70 else 71 echo clean_url(stripslashes(wp_get_referer())); 72 ?>" /> 63 <input name="referredby" type="hidden" id="referredby" value="<?php echo clean_url(stripslashes(wp_get_referer())); ?>" /> 73 64 <?php if ( 'draft' != $post->post_status ) wp_original_referer_field(true, 'previous'); ?> 74 65
Note: See TracChangeset
for help on using the changeset viewer.