Changeset 6807 for trunk/wp-admin/post.php
- Timestamp:
- 02/13/2008 08:55:17 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/post.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r6770 r6807 127 127 $referer = preg_replace('|https?://[^/]+|i', '', wp_get_referer()); 128 128 129 if ($_POST['save']) { 130 $location = "post.php?action=edit&post=$post_ID"; 131 } elseif ($_POST['addemeta']) { 129 if ($_POST['addemeta']) { 132 130 $location = add_query_arg( 'message', 2, wp_get_referer() ); 133 131 $location = explode('#', $location); … … 141 139 if ( $_POST['referredby'] == 'redo' ) 142 140 $location = get_permalink( $post_ID ); 141 if (false !== strpos($location, 'edit.php') ) 142 $location = add_query_arg('posted', $post_ID, $location); 143 143 } elseif ($action == 'editattachment') { 144 144 $location = 'attachments.php'; 145 145 } else { 146 $location = 'edit.php?posted=' . $post_ID;146 $location = "post.php?action=edit&post=$post_ID"; 147 147 } 148 148 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)