Changeset 2436
- Timestamp:
- 03/13/2005 04:36:09 PM (20 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/link-manager.php
r2376 r2436 244 244 } // end if save 245 245 setcookie('links_show_cat_id_' . COOKIEHASH, $links_show_cat_id, time()+600); 246 header('Location: ' .$this_file);246 wp_redirect($this_file); 247 247 break; 248 248 } // end Save … … 268 268 $links_show_cat_id = $cat_id; 269 269 setcookie('links_show_cat_id_' . COOKIEHASH, $links_show_cat_id, time()+600); 270 header('Location: '.$this_file);270 wp_redirect($this_file); 271 271 break; 272 272 } // end Delete -
trunk/wp-admin/options.php
r2322 r2436 85 85 $goback = add_query_arg('updated', 'true', $_SERVER['HTTP_REFERER']); 86 86 $goback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $goback); 87 header('Location: ' .$goback);87 wp_redirect($goback); 88 88 break; 89 89 -
trunk/wp-admin/profile.php
r2425 r2436 87 87 $result = $wpdb->query("UPDATE $wpdb->users SET user_firstname='$newuser_firstname', $updatepassword user_lastname='$newuser_lastname', user_nickname='$newuser_nickname', user_icq='$newuser_icq', user_email='$newuser_email', user_url='$newuser_url', user_aim='$newuser_aim', user_msn='$newuser_msn', user_yim='$newuser_yim', user_idmode='$newuser_idmode', user_description = '$user_description', user_nicename = '$newuser_nicename' WHERE ID = $user_ID"); 88 88 89 header('Location:profile.php?updated=true');89 wp_redirect('profile.php?updated=true'); 90 90 break; 91 91 -
trunk/wp-comments-post.php
r2431 r2436 53 53 $location = (empty($_POST['redirect_to'])) ? $_SERVER["HTTP_REFERER"] : $_POST['redirect_to']; 54 54 55 header("Location: $location"); 56 55 wp_redirect($location); 57 56 ?> -
trunk/wp-includes/functions.php
r2432 r2436 1712 1712 endif; 1713 1713 1714 // Cookie safe redirect. Works around IIS Set-Cookie bug. 1715 // http://support.microsoft.com/kb/q176113/ 1716 if ( !function_exists('wp_redirect') ) : 1717 function wp_redirect($location) { 1718 global $is_IIS; 1719 1720 if ($is_IIS) 1721 header("Refresh: 0;url=$location"); 1722 else 1723 header("Location: $location"); 1724 } 1725 endif; 1726 1714 1727 function is_plugin_page() { 1715 1728 global $plugin_page; -
trunk/wp-includes/vars.php
r2240 r2436 36 36 // Server detection 37 37 $is_apache = strstr($_SERVER['SERVER_SOFTWARE'], 'Apache') ? 1 : 0; 38 $is_IIS = strstr($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS') ? 1 : 0; 38 39 39 40 // if the config file does not provide the smilies array, let's define it here -
trunk/wp-login.php
r2425 r2436 185 185 } 186 186 do_action('wp_login', $user_login); 187 header("Location: $redirect_to");187 wp_redirect($redirect_to); 188 188 exit(); 189 189 } else { -
trunk/wp-pass.php
r1964 r2436 8 8 setcookie('wp-postpass_' . COOKIEHASH, $_POST['post_password'], time() + 864000, COOKIEPATH); 9 9 10 header('Location: ' . $_SERVER['HTTP_REFERER']); 11 10 wp_redirect($_SERVER['HTTP_REFERER']); 12 11 ?>
Note: See TracChangeset
for help on using the changeset viewer.