mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-02 03:34:33 +00:00
Hooks: Standardize naming of dynamic hooks to use interpolation vs concatenation.
Benefits gained in discoverability and self-documentation throughout core trump the negligible performance hit in using interpolation in hook names. Props ramiy. See #37748. git-svn-id: https://develop.svn.wordpress.org/trunk@38307 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -64,7 +64,7 @@ wp_enqueue_script( 'updates' );
|
||||
*
|
||||
* @since 2.7.0
|
||||
*/
|
||||
do_action( "install_plugins_pre_$tab" );
|
||||
do_action( "install_plugins_pre_{$tab}" );
|
||||
|
||||
/*
|
||||
* Call the pre upload action on every non-upload plugin install screen
|
||||
@@ -155,7 +155,7 @@ if ( $tab !== 'upload' ) {
|
||||
*
|
||||
* @param int $paged The current page number of the plugins list table.
|
||||
*/
|
||||
do_action( "install_plugins_$tab", $paged ); ?>
|
||||
do_action( "install_plugins_{$tab}", $paged ); ?>
|
||||
|
||||
<span class="spinner"></span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user