Make WordPress Core

Ticket #56283: 56283.2.diff

File 56283.2.diff, 2.3 KB (added by SergeyBiryukov, 4 years ago)
  • src/js/_enqueues/wp/theme.js

     
    16941694        browse: function( section ) {
    16951695                // Create a new collection with the proper theme data
    16961696                // for each section.
    1697                 if ( 'blockthemes' === section ) {
     1697                if ( 'block-themes' === section ) {
    16981698                        // Get the themes by sending Ajax POST request to api.wordpress.org/themes
    16991699                        // or searching the local cache.
    17001700                        this.collection.query( { tag: 'full-site-editing' } );
  • src/wp-admin/theme-install.php

     
    9090         *
    9191         * Possible hook names include:
    9292         *
    93          *  - `install_themes_pre_blockthemes`
     93         *  - `install_themes_pre_block-themes`
    9494         *  - `install_themes_pre_dashboard`
    9595         *  - `install_themes_pre_featured`
    9696         *  - `install_themes_pre_new`
     
    9999         *  - `install_themes_pre_upload`
    100100         *
    101101         * @since 2.8.0
    102          * @since 6.1.0 Added `install_themes_pre_blockthemes` hook name.
     102         * @since 6.1.0 Added `install_themes_pre_block-themes` hook name.
    103103         */
    104104        do_action( "install_themes_pre_{$tab}" );
    105105}
     
    187187                <ul class="filter-links">
    188188                        <li><a href="#" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a></li>
    189189                        <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>
     190                        <li><a href="#" data-sort="block-themes"><?php _ex( 'Block Themes', 'themes' ); ?></a></li>
    191191                        <li><a href="#" data-sort="favorites"><?php _ex( 'Favorites', 'themes' ); ?></a></li>
    192192                </ul>
    193193
     
    266266         *
    267267         * Possible hook names include:
    268268         *
    269          *  - `install_themes_blockthemes`
     269         *  - `install_themes_block-themes`
    270270         *  - `install_themes_dashboard`
    271271         *  - `install_themes_featured`
    272272         *  - `install_themes_new`
     
    275275         *  - `install_themes_upload`
    276276         *
    277277         * @since 2.8.0
    278          * @since 6.1.0 Added `install_themes_blockthemes` hook name.
     278         * @since 6.1.0 Added `install_themes_block-themes` hook name.
    279279         *
    280280         * @param int $paged Number of the current page of results being viewed.
    281281         */