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-includes/class-wp-rewrite.php

    r37539 r38307  
    14141414             * @param array $rules The rewrite rules generated for the current permastruct.
    14151415             */
    1416             $rules = apply_filters( $permastructname . '_rewrite_rules', $rules );
     1416            $rules = apply_filters( "{$permastructname}_rewrite_rules", $rules );
    14171417            if ( 'post_tag' == $permastructname ) {
    14181418
Note: See TracChangeset for help on using the changeset viewer.