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
This commit is contained in:
John Blackbourn 2015-12-14 02:43:25 +00:00
parent 9f7165d522
commit 593cc9abbd
2 changed files with 6 additions and 2 deletions

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

View File

@ -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.