WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/31/2016 11:10:37 AM (5 years ago)
Author:
pento
Message:

REST API: Allow a CSV list of user roles to be passed to /users.

After [39048], this changes explicitly parses the list of user roles as slugs, and adds tests.

Props jnylen0.
Fixes #38557.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-users-controller.php

    r39046 r39056  
    10111011                    ),
    10121012                    'context'     => array( 'edit' ),
     1013                    'arg_options' => array(
     1014                        'sanitize_callback' => 'wp_parse_slug_list',
     1015                    ),
    10131016                ),
    10141017                'password'        => array(
Note: See TracChangeset for help on using the changeset viewer.