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
This commit is contained in:
John Blackbourn 2015-12-14 02:42:29 +00:00
parent cb068034ee
commit 860aa2dd98

View File

@ -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) {