Changeset 9055
- Timestamp:
- 07/18/2019 08:28:52 AM (6 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/api/routes/class-plugin.php
r8729 r9055 217 217 } 218 218 } 219 220 // Block metadata, if available 221 $result['blocks'] = get_post_meta( $post_id, 'all_blocks', true ) ?: []; 222 $result['block_assets'] = get_post_meta( $post_id, 'block_files', true ) ?: []; 219 223 220 224 // That's all folks! -
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/standalone/class-plugins-info-api-request.php
r9051 r9055 33 33 'tested' => false, 34 34 'stable_tag' => false, 35 'blocks' => false, 36 'block_assets' => false, 35 37 ); 36 38 … … 52 54 'tags' => true, 53 55 'tested' => true, 56 'blocks' => false, 57 'block_assets' => false, 54 58 ); 55 59 … … 83 87 'tags' => true, 84 88 'tested' => true, 89 'blocks' => false, 90 'block_assets' => false, 85 91 ); 86 92 … … 152 158 } 153 159 160 // If it's a block search, include blocks in the response by default 161 if ( ! empty( $this->args->block ) ) { 162 $fields['blocks'] = true; 163 $fields['block_assets'] = true; 164 } 165 154 166 $fields = array_merge( $fields, $this->requested_fields ); 155 167
Note: See TracChangeset
for help on using the changeset viewer.