Changeset 576 for trunk/wp-admin/wp-post.php
- Timestamp:
- 12/07/2003 09:26:05 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/wp-post.php
r572 r576 104 104 105 105 // Insert categories 106 // Check to make sure there is a category, if not just set it to some default 107 if (!$post_categories) $post_categories = $wpdb->get_var("SELECT cat_ID FROM $tablecategories LIMIT 1"); 106 108 foreach ($post_categories as $post_category) { 107 109 // Double check it's not there already … … 121 123 sleep($sleep_after_edit); 122 124 } 125 126 if (!empty($HTTP_POST_VARS['mode'])) { 127 switch($HTTP_POST_VARS['mode']) { 128 case 'bookmarklet': 129 $location = 'b2bookmarklet.php?a=b'; 130 break; 131 case 'sidebar': 132 $location = 'b2sidebar.php?a=b'; 133 break; 134 default: 135 $location = 'wp-post.php'; 136 break; 137 } 138 } else { 139 $location = 'wp-post.php'; 140 } 141 142 if ('' != $HTTP_POST_VARS['save']) $location = "wp-post.php?action=edit&post=$post_ID"; 143 header("Location: $location"); 123 144 124 145 if ($post_status == 'publish') { … … 148 169 } // end if publish 149 170 150 if (!empty($HTTP_POST_VARS['mode'])) {151 switch($HTTP_POST_VARS['mode']) {152 case 'bookmarklet':153 $location = 'b2bookmarklet.php?a=b';154 break;155 case 'sidebar':156 $location = 'b2sidebar.php?a=b';157 break;158 default:159 $location = 'wp-post.php';160 break;161 }162 } else {163 $location = 'wp-post.php';164 }165 166 if ('' != $HTTP_POST_VARS['save']) $location = "wp-post.php?action=edit&post=$post_ID";167 header("Location: $location");168 171 exit(); 169 172 break;
Note: See TracChangeset
for help on using the changeset viewer.