Make WordPress Core


Ignore:
Timestamp:
11/03/2016 01:45:48 AM (8 years ago)
Author:
joehoyle
Message:

REST API: Support querying for multiple post statuses.

Multiple post statuses can be specified by the usual CSV or array-propper format.

Props jnylen0, kadamwhite, websupporter.
Fixes #38420.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/class-wp-rest-server.php

    r39051 r39104  
    11841184                        $arg_data['description'] = $opts['description'];
    11851185                    }
     1186                    if ( isset( $opts['type'] ) ) {
     1187                        $arg_data['type'] = $opts['type'];
     1188                    }
     1189                    if ( isset( $opts['items'] ) ) {
     1190                        $arg_data['items'] = $opts['items'];
     1191                    }
    11861192                    $endpoint_data['args'][ $key ] = $arg_data;
    11871193                }
Note: See TracChangeset for help on using the changeset viewer.