Changeset 56415
- Timestamp:
- 08/18/2023 05:44:29 PM (18 months ago)
- Location:
- trunk/src/wp-includes/rest-api/endpoints
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php
r56093 r56415 58 58 * 59 59 * @param WP_REST_Request $request Full details about the request. 60 * @return bool|WP_Error True if the request has read access for the item, WP_Error object o therwise.60 * @return bool|WP_Error True if the request has read access for the item, WP_Error object or false otherwise. 61 61 */ 62 62 public function get_item_permissions_check( $request ) { … … 78 78 * 79 79 * @param WP_REST_Request $request Full details about the request. 80 * @return bool|WP_Error Whether the current user has permission.80 * @return true|WP_Error True if the request has read access for the item, WP_Error object otherwise. 81 81 */ 82 82 protected function check_has_read_only_access( $request ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-menu-locations-controller.php
r53760 r56415 121 121 * 122 122 * @param WP_REST_Request $request Full details about the request. 123 * @return WP_Error|boolTrue if the request has read access for the item, WP_Error object otherwise.123 * @return true|WP_Error True if the request has read access for the item, WP_Error object otherwise. 124 124 */ 125 125 public function get_item_permissions_check( $request ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php
r56093 r56415 41 41 * 42 42 * @param WP_REST_Request $request Full details about the request. 43 * @return bool|WP_Error True if the request has read access for the item, otherwise false orWP_Error object.43 * @return true|WP_Error True if the request has read access for the item, otherwise WP_Error object. 44 44 */ 45 45 public function get_item_permissions_check( $request ) { … … 82 82 * 83 83 * @param WP_REST_Request $request Full details about the request. 84 * @return bool|WP_Error Whether the current user has permission.84 * @return true|WP_Error True if the current user has permission, WP_Error object otherwise. 85 85 */ 86 86 protected function check_has_read_only_access( $request ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
r56193 r56415 476 476 * 477 477 * @param WP_REST_Request $request Full details about the request. 478 * @return true|WP_Error True if the request has read access for the item, WP_Error objectotherwise.478 * @return bool|WP_Error True if the request has read access for the item, WP_Error object or false otherwise. 479 479 */ 480 480 public function get_item_permissions_check( $request ) { … … 1507 1507 * @param string $template Page template filename. 1508 1508 * @param WP_REST_Request $request Request. 1509 * @return bool|WP_Error True if template is still valid or if the same as existing value, or falseif template not supported.1509 * @return true|WP_Error True if template is still valid or if the same as existing value, or a WP_Error if template not supported. 1510 1510 */ 1511 1511 public function check_template( $template, $request ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
r54891 r56415 180 180 * 181 181 * @param WP_REST_Request $request Full details about the request. 182 * @return true|WP_Error True if the request has read access, otherwise false or WP_Error object.182 * @return bool|WP_Error True if the request has read access, otherwise false or WP_Error object. 183 183 */ 184 184 public function get_items_permissions_check( $request ) { … … 418 418 * 419 419 * @param WP_REST_Request $request Full details about the request. 420 * @return true|WP_Error True if the request has read access for the item, otherwise false orWP_Error object.420 * @return true|WP_Error True if the request has read access for the item, otherwise WP_Error object. 421 421 */ 422 422 public function get_item_permissions_check( $request ) { -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
r55951 r56415 119 119 * 120 120 * @param WP_REST_Request $request Full details about the request. 121 * @return bool|WP_Error True if the request has read access for the item, otherwise WP_Error object.121 * @return true|WP_Error True if the request has read access for the item, otherwise WP_Error object. 122 122 */ 123 123 public function get_item_permissions_check( $request ) { … … 145 145 * @since 5.7.0 146 146 * 147 * @return bool|WP_Error Whether the theme can be read.147 * @return true|WP_Error True if the theme can be read, WP_Error object otherwise. 148 148 */ 149 149 protected function check_read_active_theme_permission() {
Note: See TracChangeset
for help on using the changeset viewer.