Make WordPress Core


Ignore:
Timestamp:
04/05/2017 08:24:27 PM (7 years ago)
Author:
jnylen0
Message:

REST API: Allow fetching multiple terms at once via the slug parameter.

This matches a similar change previously made for posts (#38579) and an upcoming change for users (#40213).

Props wonderboymusic, MatheusGimenez, curdin.
Fixes #40027.

File:
1 edited

Legend:

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

    r39954 r40376  
    979979        $query_params['slug'] = array(
    980980            'description'       => __( 'Limit result set to terms with a specific slug.' ),
    981             'type'              => 'string',
     981            'type'              => 'array',
     982            'items'             => array(
     983                'type'          => 'string'
     984            ),
    982985        );
    983986
Note: See TracChangeset for help on using the changeset viewer.