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-plugin-install-list-table.php

    r38221 r38307  
    201201         * @param array|bool $args Plugin Install API arguments.
    202202         */
    203         $args = apply_filters( "install_plugins_table_api_args_$tab", $args );
     203        $args = apply_filters( "install_plugins_table_api_args_{$tab}", $args );
    204204
    205205        if ( !$args )
Note: See TracChangeset for help on using the changeset viewer.