[wp-trac] [WordPress Trac] #33245: 4.3 - Invalid arguments passed to wp_validate_redirect within wp_safe_redirect()
WordPress Trac
noreply at wordpress.org
Mon Aug 3 18:12:09 UTC 2015
#33245: 4.3 - Invalid arguments passed to wp_validate_redirect within
wp_safe_redirect()
----------------------------+-----------------------------
Reporter: paultgoodchild | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: trunk
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
File: pluggable.php
Line: 1284
Function: wp_safe_redirect()
Current/Bug:
{{{
$location = wp_validate_redirect( $location, apply_filters(
'wp_safe_redirect_fallback', admin_url(), $status ) );
}}}
Fix:
{{{
$location = wp_validate_redirect( $location, apply_filters(
'wp_safe_redirect_fallback', admin_url() ), $status );
}}}
Reasoning:
The $status is being passed to the new 'wp_safe_redirect_fallback' filter
as the 3rd parameter (which doesn't exist). It should be passed to
wp_validate_redirect() as its 2nd parameter
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33245>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list