mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Introducing wp_redirect(), first cut. http://mosquito.wordpress.org/view.php?id=592 Props: Toby Simmons
git-svn-id: https://develop.svn.wordpress.org/trunk@2436 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1711,6 +1711,19 @@ function auth_redirect() {
|
||||
}
|
||||
endif;
|
||||
|
||||
// Cookie safe redirect. Works around IIS Set-Cookie bug.
|
||||
// http://support.microsoft.com/kb/q176113/
|
||||
if ( !function_exists('wp_redirect') ) :
|
||||
function wp_redirect($location) {
|
||||
global $is_IIS;
|
||||
|
||||
if ($is_IIS)
|
||||
header("Refresh: 0;url=$location");
|
||||
else
|
||||
header("Location: $location");
|
||||
}
|
||||
endif;
|
||||
|
||||
function is_plugin_page() {
|
||||
global $plugin_page;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user