Make WordPress Core


Ignore:
Timestamp:
08/22/2016 06:24:48 PM (9 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-plugins-list-table.php

    r38149 r38307  
    865865         *                            'Drop-ins', 'Search'.
    866866         */
    867         do_action( "after_plugin_row_$plugin_file", $plugin_file, $plugin_data, $status );
     867        do_action( "after_plugin_row_{$plugin_file}", $plugin_file, $plugin_data, $status );
    868868    }
    869869
Note: See TracChangeset for help on using the changeset viewer.