From 860aa2dd985fca12866fef7dc5f91f70b1a264e4 Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Mon, 14 Dec 2015 02:42:29 +0000 Subject: [PATCH] Add missing `@param` docs to `wp_safe_redirect()` and `wp_sanitize_redirect()`. See #32246 git-svn-id: https://develop.svn.wordpress.org/trunk@35914 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/pluggable.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php index 3835f2afe4..99193eaf2e 100644 --- a/src/wp-includes/pluggable.php +++ b/src/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) {