Changeset 40376
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r39954 r40376 979 979 $query_params['slug'] = array( 980 980 'description' => __( 'Limit result set to terms with a specific slug.' ), 981 'type' => 'string', 981 'type' => 'array', 982 'items' => array( 983 'type' => 'string' 984 ), 982 985 ); 983 986 -
trunk/tests/phpunit/tests/rest-api/rest-tags-controller.php
r39913 r40376 377 377 $this->assertEquals( 1, count( $data ) ); 378 378 $this->assertEquals( 'Apple', $data[0]['name'] ); 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 379 413 } 380 414 -
trunk/tests/qunit/fixtures/wp-api-generated.js
r40238 r40376 1991 1991 "required": false, 1992 1992 "description": "Limit result set to terms with a specific slug.", 1993 "type": "string" 1993 "type": "array", 1994 "items": { 1995 "type": "string" 1996 } 1994 1997 } 1995 1998 } … … 2226 2229 "required": false, 2227 2230 "description": "Limit result set to terms with a specific slug.", 2228 "type": "string" 2231 "type": "array", 2232 "items": { 2233 "type": "string" 2234 } 2229 2235 } 2230 2236 }
Note: See TracChangeset
for help on using the changeset viewer.