diff --git a/wp-includes/user.php b/wp-includes/user.php index 0c207116e4..4418381185 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -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.' ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index e748b76699..3ad015f0c1 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-beta2-49474'; +$wp_version = '5.6-beta2-49475'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.