Changeset 8484 for trunk/wp-admin/post.php
- Timestamp:
- 07/29/2008 05:22:58 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r8033 r8484 23 23 } elseif ( isset($_POST['save']) && ( empty($referredby) || $referredby == $referer || 'redo' != $referredby ) ) { 24 24 if ( $_POST['_wp_original_http_referer'] && strpos( $_POST['_wp_original_http_referer'], '/wp-admin/post.php') === false && strpos( $_POST['_wp_original_http_referer'], '/wp-admin/post-new.php') === false ) 25 $location = add_query_arg( '_wp_original_http_referer', urlencode( stripslashes( $_POST['_wp_original_http_referer'] ) ), "post.php?action=edit&post=$post_ID&message=1" ); 25 $location = add_query_arg( array( 26 '_wp_original_http_referer' => urlencode( stripslashes( $_POST['_wp_original_http_referer'] ) ), 27 'message' => 1 28 ), get_edit_post_link( $post_ID, 'url' ) ); 26 29 else 27 $location = "post.php?action=edit&post=$post_ID&message=4";30 $location = add_query_arg( 'message', 4, get_edit_post_link( $post_ID, 'url' ) ); 28 31 } elseif (isset($_POST['addmeta']) && $_POST['addmeta']) { 29 32 $location = add_query_arg( 'message', 2, wp_get_referer() ); … … 48 51 $location = 'attachments.php'; 49 52 } else { 50 $location = "post.php?action=edit&post=$post_ID&message=4";53 $location = add_query_arg( 'message', 4, get_edit_post_link( $post_ID, 'url' ) ); 51 54 } 52 55
Note: See TracChangeset
for help on using the changeset viewer.