Changeset 53906
- Timestamp:
- 08/18/2022 11:43:34 AM (2 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/wp/theme.js
r52819 r53906 1695 1695 // Create a new collection with the proper theme data 1696 1696 // for each section. 1697 this.collection.query( { browse: section } ); 1697 if ( 'blockthemes' === section ) { 1698 1699 var request = { tag: 'full-site-editing' }; 1700 1701 // Get the themes by sending Ajax POST request to api.wordpress.org/themes 1702 // or searching the local cache. 1703 this.collection.query( request ); 1704 return; 1705 1706 } else { 1707 this.collection.query( { browse: section } ); 1708 } 1698 1709 }, 1699 1710 -
trunk/src/wp-admin/theme-install.php
r53191 r53906 97 97 * - `install_themes_pre_updated` 98 98 * - `install_themes_pre_upload` 99 * - `install_themes_pre_blockthemes` 99 100 * 100 101 * @since 2.8.0 102 * @since 6.1.0 Added `install_themes_pre_blockthemes`. 101 103 */ 102 104 do_action( "install_themes_pre_{$tab}" ); … … 186 188 <li><a href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a></li> 187 189 <li><a href="#" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a></li> 190 <li><a href="#" data-sort="blockthemes"><?php _ex( 'Block Themes', 'themes' ); ?></a></li> 188 191 <li><a href="#" data-sort="favorites"><?php _ex( 'Favorites', 'themes' ); ?></a></li> 189 192 </ul> … … 270 273 * - `install_themes_updated` 271 274 * - `install_themes_upload` 275 * - `install_themes_blockthemes` 272 276 * 273 277 * @since 2.8.0 278 * @since 6.1.0 Added `install_themes_blockthemes`. 274 279 * 275 280 * @param int $paged Number of the current page of results being viewed.
Note: See TracChangeset
for help on using the changeset viewer.