Make WordPress Core

Changeset 52653


Ignore:
Timestamp:
01/30/2022 07:32:08 PM (2 years ago)
Author:
johnbillion
Message:

Role/Capability: Correct the documented accepted types for the capability argument of WP_User_Query.

See #16841, #54729

File:
1 edited

Legend:

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

    r52332 r52653  
    167167     *     @type array           $meta_query          An associative array of WP_Meta_Query arguments.
    168168     *                                                See WP_Meta_Query::__construct for accepted values.
    169      *     @type string          $capability          An array or a comma-separated list of capability names that users must match
     169     *     @type string|string[] $capability          An array or a comma-separated list of capability names that users must match
    170170     *                                                to be included in results. Note that this is an inclusive list: users
    171171     *                                                must match *each* capability.
Note: See TracChangeset for help on using the changeset viewer.