- 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-posts-controller.php
r51964 r52068 39 39 */ 40 40 protected $password_check_passed = array(); 41 42 /** 43 * Whether the controller supports batching. 44 * 45 * @since 5.9.0 46 * @var array 47 */ 48 protected $allow_batch = array( 'v1' => true ); 41 49 42 50 /** … … 81 89 'args' => $this->get_endpoint_args_for_item_schema( WP_REST_Server::CREATABLE ), 82 90 ), 83 'schema' => array( $this, 'get_public_item_schema' ), 91 'allow_batch' => $this->allow_batch, 92 'schema' => array( $this, 'get_public_item_schema' ), 84 93 ) 85 94 ); … … 99 108 '/' . $this->rest_base . '/(?P<id>[\d]+)', 100 109 array( 101 'args' => array(110 'args' => array( 102 111 'id' => array( 103 112 'description' => __( 'Unique identifier for the post.' ), … … 129 138 ), 130 139 ), 131 'schema' => array( $this, 'get_public_item_schema' ), 140 'allow_batch' => $this->allow_batch, 141 'schema' => array( $this, 'get_public_item_schema' ), 132 142 ) 133 143 );
Note: See TracChangeset
for help on using the changeset viewer.