Changeset 7116 for trunk/wp-admin/page.php
- Timestamp:
- 03/01/2008 12:16:55 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/page.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/page.php
r7103 r7116 96 96 97 97 $page_ID = edit_post(); 98 $page = get_post($page_ID); 98 99 99 100 if ( 'post' == $_POST['originalaction'] ) { … … 122 123 $referer = preg_replace('|https?://[^/]+|i', '', wp_get_referer()); 123 124 124 if ($_POST['addmeta']) { 125 if ( isset($_POST['save']) && ( 'draft' == $page->post_status || 'pending' == $page->post_status ) ) { 126 $location = "page.php?action=edit&post=$page_ID"; 127 } elseif ( isset($_POST['save']) && (empty($referredby) || $referredby == $referer) ) { 128 $location = "page.php?action=edit&post=$page_ID"; 129 } elseif ($_POST['addmeta']) { 125 130 $location = add_query_arg( 'message', 2, wp_get_referer() ); 126 131 $location = explode('#', $location); … … 136 141 if ( false !== strpos($location, 'edit-pages.php') ) 137 142 $location = add_query_arg('posted', $page_ID, $location); 143 } elseif ( isset($_POST['publish']) ) { 144 $location = "page-new.php?posted=$page_ID"; 138 145 } elseif ($action == 'editattachment') { 139 146 $location = 'attachments.php';
Note: See TracChangeset
for help on using the changeset viewer.