mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Privacy: More precise checking of user request action names.
Props garrett-eclipse. Fixes #46536. git-svn-id: https://develop.svn.wordpress.org/trunk@49475 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -3773,7 +3773,7 @@ function wp_create_user_request( $email_address = '', $action_name = '', $reques
|
||||
return new WP_Error( 'invalid_email', __( 'Invalid email address.' ) );
|
||||
}
|
||||
|
||||
if ( ! $action_name ) {
|
||||
if ( ! in_array( $action_name, _wp_privacy_action_request_types(), true ) ) {
|
||||
return new WP_Error( 'invalid_action', __( 'Invalid action name.' ) );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user