WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/14/2016 04:17:38 AM (3 years ago)
Author:
johnbillion
Message:

General: Use interpolation instead of concatenation for all dynamic hook names.

This fixes the rendering of the hook names on developer.wordpress.org.

Props keesiemeijer
Fixes #39148

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/author-template.php

    r38341 r39600  
    149149     * @param int|bool $original_user_id The original user ID, as passed to the function.
    150150     */
    151     return apply_filters( 'get_the_author_' . $field, $value, $user_id, $original_user_id );
     151    return apply_filters( "get_the_author_{$field}", $value, $user_id, $original_user_id );
    152152}
    153153
     
    175175     * @param int    $user_id     The user ID.
    176176     */
    177     echo apply_filters( 'the_author_' . $field, $author_meta, $user_id );
     177    echo apply_filters( "the_author_{$field}", $author_meta, $user_id );
    178178}
    179179
Note: See TracChangeset for help on using the changeset viewer.