WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/22/2016 06:24:48 PM (5 years ago)
Author:
DrewAPicture
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/plugin-install.php

    r38172 r38307  
    6565 * @since 2.7.0
    6666 */
    67 do_action( "install_plugins_pre_$tab" );
     67do_action( "install_plugins_pre_{$tab}" );
    6868
    6969/*
     
    156156 * @param int $paged The current page number of the plugins list table.
    157157 */
    158 do_action( "install_plugins_$tab", $paged ); ?>
     158do_action( "install_plugins_{$tab}", $paged ); ?>
    159159
    160160    <span class="spinner"></span>
Note: See TracChangeset for help on using the changeset viewer.