- Timestamp:
- 11/09/2021 01:57:48 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r51964 r52068 48 48 */ 49 49 protected $total_terms; 50 51 /** 52 * Whether the controller supports batching. 53 * 54 * @since 5.9.0 55 * @var array 56 */ 57 protected $allow_batch = array( 'v1' => true ); 50 58 51 59 /** … … 90 98 'args' => $this->get_endpoint_args_for_item_schema( WP_REST_Server::CREATABLE ), 91 99 ), 92 'schema' => array( $this, 'get_public_item_schema' ), 100 'allow_batch' => $this->allow_batch, 101 'schema' => array( $this, 'get_public_item_schema' ), 93 102 ) 94 103 ); … … 98 107 '/' . $this->rest_base . '/(?P<id>[\d]+)', 99 108 array( 100 'args' => array(109 'args' => array( 101 110 'id' => array( 102 111 'description' => __( 'Unique identifier for the term.' ), … … 130 139 ), 131 140 ), 132 'schema' => array( $this, 'get_public_item_schema' ), 141 'allow_batch' => $this->allow_batch, 142 'schema' => array( $this, 'get_public_item_schema' ), 133 143 ) 134 144 );
Note: See TracChangeset
for help on using the changeset viewer.