Changeset 48842
- Timestamp:
- 08/22/2020 01:52:42 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-block-directory-controller.php
r48782 r48842 96 96 97 97 foreach ( $response->plugins as $plugin ) { 98 // If the API returned a plugin with empty data for 'blocks', skip it. 99 if ( empty( $plugin['blocks'] ) ) { 100 continue; 101 } 102 98 103 $data = $this->prepare_item_for_response( $plugin, $request ); 99 104 $result[] = $this->prepare_response_for_collection( $data );
Note: See TracChangeset
for help on using the changeset viewer.