From 593cc9abbdc13a3284d29cf68a9dbcd5e41ff94d Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 14 Dec 2015 02:43:25 +0000 Subject: [PATCH] Add missing `@param` docs to `wp_safe_redirect()` and `wp_sanitize_redirect()`. See #32246 Built from https://develop.svn.wordpress.org/trunk@35914 git-svn-id: http://core.svn.wordpress.org/trunk@35878 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable.php | 6 +++++- wp-includes/version.php | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 3835f2afe4..99193eaf2e 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -1237,7 +1237,8 @@ if ( !function_exists('wp_sanitize_redirect') ) : * * @since 2.3.0 * - * @return string redirect-sanitized URL + * @param string $location The path to redirect to. + * @return string Redirect-sanitized URL. **/ function wp_sanitize_redirect($location) { $regex = '/ @@ -1288,6 +1289,9 @@ if ( !function_exists('wp_safe_redirect') ) : * but only used in a few places. * * @since 2.3.0 + * + * @param string $location The path to redirect to. + * @param int $status Status code to use. */ function wp_safe_redirect($location, $status = 302) { diff --git a/wp-includes/version.php b/wp-includes/version.php index 9b7f991e89..9590cbabfc 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-35913'; +$wp_version = '4.5-alpha-35914'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.