mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
cb068034ee
commit
860aa2dd98
@ -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) {
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user