Make WordPress Core

Changeset 53907


Ignore:
Timestamp:
08/18/2022 02:07:53 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Coding Standards: Remove a one-time variable in themes.view.Installer.browse.

Alphabetize the list of possible hook name in install_themes_pre_* and install_themes_* filters.

Follow-up to [53906].

See #56283.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/wp/theme.js

    r53906 r53907  
    16961696        // for each section.
    16971697        if ( 'blockthemes' === section ) {
    1698 
    1699             var request = { tag: 'full-site-editing' };
    1700 
    17011698            // Get the themes by sending Ajax POST request to api.wordpress.org/themes
    17021699            // or searching the local cache.
    1703             this.collection.query( request );
    1704             return;
    1705 
     1700            this.collection.query( { tag: 'full-site-editing' } );
    17061701        } else {
    17071702            this.collection.query( { browse: section } );
  • trunk/src/wp-admin/theme-install.php

    r53906 r53907  
    9191     * Possible hook names include:
    9292     *
     93     *  - `install_themes_pre_blockthemes`
    9394     *  - `install_themes_pre_dashboard`
    9495     *  - `install_themes_pre_featured`
     
    9798     *  - `install_themes_pre_updated`
    9899     *  - `install_themes_pre_upload`
    99      *  - `install_themes_pre_blockthemes`
    100100     *
    101101     * @since 2.8.0
    102      * @since 6.1.0 Added `install_themes_pre_blockthemes`.
     102     * @since 6.1.0 Added `install_themes_pre_blockthemes` hook name.
    103103     */
    104104    do_action( "install_themes_pre_{$tab}" );
     
    267267     * Possible hook names include:
    268268     *
     269     *  - `install_themes_blockthemes`
    269270     *  - `install_themes_dashboard`
    270271     *  - `install_themes_featured`
     
    273274     *  - `install_themes_updated`
    274275     *  - `install_themes_upload`
    275      *  - `install_themes_blockthemes`
    276276     *
    277277     * @since 2.8.0
    278      * @since 6.1.0 Added `install_themes_blockthemes`.
     278     * @since 6.1.0 Added `install_themes_blockthemes` hook name.
    279279     *
    280280     * @param int $paged Number of the current page of results being viewed.
Note: See TracChangeset for help on using the changeset viewer.