Changeset 51317
- Timestamp:
- 07/02/2021 07:03:11 PM (3 years ago)
- Location:
- branches/5.8
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/5.8
-
branches/5.8/src/wp-includes/rest-api/class-wp-rest-server.php
r51241 r51317 1081 1081 * @param string $route The matched route regex. 1082 1082 * @param WP_Error|null $response The current error object if any. 1083 *1084 1083 * @return WP_REST_Response 1085 1084 */ -
branches/5.8/src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php
r49955 r51317 50 50 * 51 51 * @param WP_REST_Request $request Full details about the request. 52 *53 52 * @return true|WP_Error True if the request has permission, WP_Error object otherwise. 54 53 */ … … 71 70 * 72 71 * @param WP_REST_Request $request Full details about the request. 73 *74 72 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 75 73 */ … … 115 113 * @param array $plugin The plugin metadata. 116 114 * @param WP_REST_Request $request Request object. 117 *118 115 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 119 116 */ … … 157 154 * 158 155 * @param array $plugin The plugin data from WordPress.org. 159 *160 156 * @return array 161 157 */ … … 185 181 * 186 182 * @param string $slug The WordPress.org directory slug for a plugin. 187 *188 183 * @return string The plugin file found matching it. 189 184 */ -
branches/5.8/src/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php
r51316 r51317 57 57 * 58 58 * @param WP_REST_Request $request Full details about the request. 59 *60 59 * @return true|WP_Error True if the request has permission, WP_Error object otherwise. 61 60 */ … … 84 83 * 85 84 * @param WP_REST_Request $request Full details about the request. 86 *87 85 * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure. 88 86 */ … … 205 203 * @param object $raw_pattern A pattern from api.wordpress.org, before any changes. 206 204 * @param WP_REST_Request $request Request object. 207 *208 205 * @return WP_REST_Response 209 206 */ -
branches/5.8/src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php
r49955 r51317 663 663 * @param string $new_status The plugin's new status. 664 664 * @param string $current_status The plugin's current status. 665 *666 665 * @return true|WP_Error 667 666 */ … … 773 772 * @param WP_REST_Request $request The request to require the plugin matches against. 774 773 * @param array $item The plugin item. 775 *776 774 * @return bool 777 775 */ -
branches/5.8/src/wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php
r51311 r51317 269 269 * @param array $raw_sidebar Sidebar instance. 270 270 * @param WP_REST_Request $request Full details about the request. 271 *272 271 * @return WP_REST_Response Prepared response object. 273 272 */ … … 345 344 * 346 345 * @param array $sidebar Sidebar. 347 *348 346 * @return array Links for the given widget. 349 347 */ -
branches/5.8/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php
r51221 r51317 146 146 * 147 147 * @param WP_REST_Request $request The request instance. 148 *149 148 * @return WP_REST_Response 150 149 */ … … 157 156 $query['area'] = $request['area']; 158 157 } 158 159 159 $templates = array(); 160 160 foreach ( get_block_templates( $query, $this->post_type ) as $template ) { … … 184 184 * 185 185 * @param WP_REST_Request $request The request instance. 186 *187 186 * @return WP_REST_Response|WP_Error 188 187 */ … … 406 405 * @param WP_Block_Template $template Template instance. 407 406 * @param WP_REST_Request $request Request object. 408 *409 407 * @return WP_REST_Response $data 410 408 */ -
branches/5.8/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
r51000 r51317 350 350 * @param WP_Theme $theme_a First theme to compare. 351 351 * @param WP_Theme $theme_b Second theme to compare. 352 *353 352 * @return bool 354 353 */ -
branches/5.8/src/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php
r51310 r51317 425 425 * @param WP_REST_Request $request Full details about the request. 426 426 * @param string $sidebar_id ID of the sidebar the widget belongs to. 427 *428 427 * @return string|WP_Error The saved widget ID. 429 428 */
Note: See TracChangeset
for help on using the changeset viewer.