- Timestamp:
- 10/05/2017 12:36:43 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r41737 r41760 186 186 if ( isset( $registered[ $api_param ], $request[ $api_param ] ) ) { 187 187 $prepared_args[ $wp_param ] = $request[ $api_param ]; 188 } 189 } 190 191 if ( isset( $prepared_args['orderby'] ) && isset( $request['orderby'] ) ) { 192 $orderby_mappings = array( 193 'include_slugs' => 'slug__in', 194 ); 195 196 if ( isset( $orderby_mappings[ $request['orderby'] ] ) ) { 197 $prepared_args['orderby'] = $orderby_mappings[ $request['orderby'] ]; 188 198 } 189 199 } … … 933 943 'name', 934 944 'slug', 945 'include_slugs', 935 946 'term_group', 936 947 'description',
Note: See TracChangeset
for help on using the changeset viewer.