- Timestamp:
- 06/30/2021 06:42:59 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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 */
Note: See TracChangeset
for help on using the changeset viewer.