Changeset 51316
- Timestamp:
- 07/02/2021 07:02:13 PM (3 years ago)
- Location:
- branches/5.8
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
-
branches/5.8/src/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php
r51311 r51316 58 58 * @param WP_REST_Request $request Full details about the request. 59 59 * 60 * @return WP_Error|boolTrue if the request has permission, WP_Error object otherwise.60 * @return true|WP_Error True if the request has permission, WP_Error object otherwise. 61 61 */ 62 62 public function get_items_permissions_check( $request ) { … … 85 85 * @param WP_REST_Request $request Full details about the request. 86 86 * 87 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.87 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 88 88 */ 89 89 public function get_items( $request ) { -
branches/5.8/src/wp-includes/rest-api/endpoints/class-wp-rest-widget-types-controller.php
r51311 r51316 108 108 * 109 109 * @param WP_REST_Request $request Full details about the request. 110 * @return WP_Error|boolTrue if the request has read access, WP_Error object otherwise.110 * @return true|WP_Error True if the request has read access, WP_Error object otherwise. 111 111 */ 112 112 public function get_items_permissions_check( $request ) { … … 120 120 * 121 121 * @param WP_REST_Request $request Full details about the request. 122 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.122 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 123 123 */ 124 124 public function get_items( $request ) { … … 138 138 * 139 139 * @param WP_REST_Request $request Full details about the request. 140 * @return WP_Error|boolTrue if the request has read access for the item, WP_Error object otherwise.140 * @return true|WP_Error True if the request has read access for the item, WP_Error object otherwise. 141 141 */ 142 142 public function get_item_permissions_check( $request ) { … … 159 159 * @since 5.8.0 160 160 * 161 * @return WP_Error|boolTrue if the widget type is visible, WP_Error otherwise.161 * @return true|WP_Error True if the widget type is visible, WP_Error otherwise. 162 162 */ 163 163 protected function check_read_permission() { … … 247 247 * 248 248 * @param WP_REST_Request $request Full details about the request. 249 * @return WP_ Error|WP_REST_ResponseResponse object on success, or WP_Error object on failure.249 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 250 250 */ 251 251 public function get_item( $request ) {
Note: See TracChangeset
for help on using the changeset viewer.