Changeset 49929 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php
- Timestamp:
- 01/04/2021 05:16:43 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-types-controller.php
r49927 r49929 115 115 * 116 116 * @param WP_REST_Request $request Full details about the request. 117 * @return WP_Error|trueTrue if the request has read access, WP_Error object otherwise.117 * @return true|WP_Error True if the request has read access, WP_Error object otherwise. 118 118 */ 119 119 public function get_items_permissions_check( $request ) { … … 127 127 * 128 128 * @param WP_REST_Request $request Full details about the request. 129 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.129 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 130 130 */ 131 131 public function get_items( $request ) { … … 161 161 * 162 162 * @param WP_REST_Request $request Full details about the request. 163 * @return WP_Error|trueTrue if the request has read access for the item, WP_Error object otherwise.163 * @return true|WP_Error True if the request has read access for the item, WP_Error object otherwise. 164 164 */ 165 165 public function get_item_permissions_check( $request ) { … … 182 182 * @since 5.5.0 183 183 * 184 * @return WP_Error|trueTrue if the block type is visible, WP_Error otherwise.184 * @return true|WP_Error True if the block type is visible, WP_Error otherwise. 185 185 */ 186 186 protected function check_read_permission() { … … 220 220 * 221 221 * @param WP_REST_Request $request Full details about the request. 222 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.222 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 223 223 */ 224 224 public function get_item( $request ) {
Note: See TracChangeset
for help on using the changeset viewer.