Make WordPress Core


Ignore:
Timestamp:
11/02/2020 06:40:06 PM (5 years ago)
Author:
helen
Message:

Privacy: More precise checking of user request action names.

Props garrett-eclipse.
Fixes #46536.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r49314 r49475  
    37743774    }
    37753775
    3776     if ( ! $action_name ) {
     3776    if ( ! in_array( $action_name, _wp_privacy_action_request_types(), true ) ) {
    37773777        return new WP_Error( 'invalid_action', __( 'Invalid action name.' ) );
    37783778    }
Note: See TracChangeset for help on using the changeset viewer.