WordPress.org

Make WordPress Core

Changeset 47277


Ignore:
Timestamp:
02/11/2020 08:53:40 PM (8 months ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Use a strict in_array() check for reserved names of user data items in wp_user_personal_data_exporter().

Props azaozz.
Fixes #47509.

File:
1 edited

Legend:

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

    r47270 r47277  
    29432943 * @since 5.4.0 Added 'Session Tokens' group to the export data.
    29442944 *
    2945  * @param string $email_address  The users email address.
     2945 * @param string $email_address  The user's email address.
    29462946 * @return array An array of personal data.
    29472947 */
     
    30113011
    30123012    /**
    3013      * Filter to extend the Users profile data for the privacy exporter.
     3013     * Filter to extend the user's profile data for the privacy exporter.
    30143014     *
    30153015     * @since 5.4.0
     
    30323032            $_extra_data,
    30333033            function( $item ) use ( $reserved_names ) {
    3034                 return ! in_array( $item['name'], $reserved_names );
     3034                return ! in_array( $item['name'], $reserved_names, true );
    30353035            }
    30363036        );
Note: See TracChangeset for help on using the changeset viewer.