mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-03 20:24:26 +00:00
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 git-svn-id: https://develop.svn.wordpress.org/trunk@39600 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -148,7 +148,7 @@ function get_the_author_meta( $field = '', $user_id = false ) {
|
||||
* @param int $user_id The user ID for the value.
|
||||
* @param int|bool $original_user_id The original user ID, as passed to the function.
|
||||
*/
|
||||
return apply_filters( 'get_the_author_' . $field, $value, $user_id, $original_user_id );
|
||||
return apply_filters( "get_the_author_{$field}", $value, $user_id, $original_user_id );
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -174,7 +174,7 @@ function the_author_meta( $field = '', $user_id = false ) {
|
||||
* @param string $author_meta The value of the metadata.
|
||||
* @param int $user_id The user ID.
|
||||
*/
|
||||
echo apply_filters( 'the_author_' . $field, $author_meta, $user_id );
|
||||
echo apply_filters( "the_author_{$field}", $author_meta, $user_id );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user