Make WordPress Core


Ignore:
Timestamp:
08/22/2016 06:24:48 PM (8 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/includes/class-wp-theme-install-list-table.php

    r37937 r38307  
    135135         * @param array $args An array of themes API arguments.
    136136         */
    137         $args = apply_filters( 'install_themes_table_api_args_' . $tab, $args );
     137        $args = apply_filters( "install_themes_table_api_args_{$tab}", $args );
    138138
    139139        if ( ! $args )
Note: See TracChangeset for help on using the changeset viewer.