- Timestamp:
- 06/30/2021 06:42:59 PM (3 years ago)
- Location:
- trunk/src/wp-includes/rest-api
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/class-wp-rest-server.php
r51241 r51289 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 */ -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php
r49955 r51289 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 */ -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-pattern-directory-controller.php
r51286 r51289 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 */ -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-plugins-controller.php
r51278 r51289 680 680 * @param string $new_status The plugin's new status. 681 681 * @param string $current_status The plugin's current status. 682 *683 682 * @return true|WP_Error 684 683 */ … … 790 789 * @param WP_REST_Request $request The request to require the plugin matches against. 791 790 * @param array $item The plugin item. 792 *793 791 * @return bool 794 792 */ -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php
r51280 r51289 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 */ -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-templates-controller.php
r51221 r51289 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 */ -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php
r51000 r51289 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 */ -
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php
r51279 r51289 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.