mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
General: Validate host on "Are you sure?" screen.
Props voldemortensen, xknown, peterwiloncc. git-svn-id: https://develop.svn.wordpress.org/trunk@54522 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
abf236fdaf
commit
506eee1259
@ -3584,10 +3584,12 @@ function wp_nonce_ays( $action ) {
|
||||
} else {
|
||||
$html = __( 'The link you followed has expired.' );
|
||||
if ( wp_get_referer() ) {
|
||||
$wp_http_referer = remove_query_arg( 'updated', wp_get_referer() );
|
||||
$wp_http_referer = wp_validate_redirect( esc_url_raw( $wp_http_referer ) );
|
||||
$html .= '</p><p>';
|
||||
$html .= sprintf(
|
||||
'<a href="%s">%s</a>',
|
||||
esc_url( remove_query_arg( 'updated', wp_get_referer() ) ),
|
||||
esc_url( $wp_http_referer ),
|
||||
__( 'Please try again.' )
|
||||
);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user