- Timestamp:
- 11/02/2016 07:13:24 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r39089 r39093 170 170 'parent_exclude' => 'post_parent__not_in', 171 171 'search' => 's', 172 'slug' => ' name',172 'slug' => 'post_name__in', 173 173 'status' => 'post_status', 174 174 ); … … 883 883 'posts_per_page', 884 884 'date_query', 885 'post_name__in', 885 886 ); 886 887 … … 2113 2114 2114 2115 $params['slug'] = array( 2115 'description' => __( 'Limit result set to posts with a specific slug.' ),2116 'type' => ' string',2117 ' validate_callback' => 'rest_validate_request_arg',2116 'description' => __( 'Limit result set to posts with one or more specific slugs.' ), 2117 'type' => 'array', 2118 'sanitize_callback' => 'wp_parse_slug_list', 2118 2119 ); 2119 2120
Note: See TracChangeset
for help on using the changeset viewer.