Changeset 7084
- Timestamp:
- 02/28/2008 07:34:13 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/post.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/post.php
r6983 r7084 102 102 103 103 $post_ID = edit_post(); 104 $post = get_post($post_ID); 104 105 105 106 if ( 'post' == $_POST['originalaction'] ) { … … 128 129 $referer = preg_replace('|https?://[^/]+|i', '', wp_get_referer()); 129 130 130 if (isset($_POST['addmeta']) && $_POST['addmeta']) { 131 if ( isset($_POST['save']) && ( 'draft' == $post->post_status || 'pending' == $post->post_status ) ) { 132 $location = "post.php?action=edit&post=$post_ID"; 133 } elseif ( isset($_POST['save']) && (empty($referredby) || $referredby == $referer) ) { 134 $location = "post.php?action=edit&post=$post_ID"; 135 } elseif (isset($_POST['addmeta']) && $_POST['addmeta']) { 131 136 $location = add_query_arg( 'message', 2, wp_get_referer() ); 132 137 $location = explode('#', $location); … … 142 147 if (false !== strpos($location, 'edit.php') ) 143 148 $location = add_query_arg('posted', $post_ID, $location); 149 } elseif ( isset($_POST['publish']) ) { 150 $location = "post-new.php?posted=$post_ID"; 144 151 } elseif ($action == 'editattachment') { 145 152 $location = 'attachments.php';
Note: See TracChangeset
for help on using the changeset viewer.