From 26eb1dc6eeaac7f6d26aadde783009acb608035f Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 6 Aug 2013 17:44:32 +0000 Subject: [PATCH] Return true from wp_redirect() when redirect successful. Update phpdoc. Props tivnet fixes #24969 git-svn-id: http://core.svn.wordpress.org/trunk@24996 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index acfa2ddd77..effa374dc9 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -856,7 +856,7 @@ if ( !function_exists('wp_redirect') ) : * * @param string $location The path to redirect to * @param int $status Status code to use - * @return bool False if $location is not set + * @return bool False if $location is not provided, true otherwise. */ function wp_redirect($location, $status = 302) { global $is_IIS; @@ -873,6 +873,8 @@ function wp_redirect($location, $status = 302) { status_header($status); // This causes problems on IIS and some FastCGI setups header("Location: $location", true, $status); + + return true; } endif;