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-includes/category-template.php

    r38121 r38307  
    12601260     * @param array $links An array of term links.
    12611261     */
    1262     $term_links = apply_filters( "term_links-$taxonomy", $links );
     1262    $term_links = apply_filters( "term_links-{$taxonomy}", $links );
    12631263
    12641264    return $before . join( $sep, $term_links ) . $after;
Note: See TracChangeset for help on using the changeset viewer.