Remove `src` from duplicate hook comments for `get_avatar` and `get_avatar_data`.
see #21195. git-svn-id: https://develop.svn.wordpress.org/trunk@31480 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2175fbb21d
commit
45d5c5ddbe
|
@ -3482,7 +3482,7 @@ function get_avatar_data( $id_or_email, $args = null ) {
|
|||
$args = apply_filters( 'pre_get_avatar_data', $args, $id_or_email );
|
||||
|
||||
if ( isset( $args['url'] ) && ! is_null( $args['url'] ) ) {
|
||||
/** This filter is documented in src/wp-includes/link-template.php */
|
||||
/** This filter is documented in wp-includes/link-template.php */
|
||||
return apply_filters( 'get_avatar_data', $args, $id_or_email );
|
||||
}
|
||||
|
||||
|
@ -3519,7 +3519,7 @@ function get_avatar_data( $id_or_email, $args = null ) {
|
|||
$allowed_comment_types = apply_filters( 'get_avatar_comment_types', array( 'comment' ) );
|
||||
if ( ! empty( $id_or_email->comment_type ) && ! in_array( $id_or_email->comment_type, (array) $allowed_comment_types ) ) {
|
||||
$args['url'] = false;
|
||||
/** This filter is documented in src/wp-includes/link-template.php */
|
||||
/** This filter is documented in wp-includes/link-template.php */
|
||||
return apply_filters( 'get_avatar_data', $args, $id_or_email );
|
||||
}
|
||||
|
||||
|
|
|
@ -2162,7 +2162,7 @@ function get_avatar( $id_or_email, $size = 96, $default = '', $alt = '', $args =
|
|||
*/
|
||||
$avatar = apply_filters( 'pre_get_avatar', null, $id_or_email, $args );
|
||||
if ( ! is_null( $avatar ) ) {
|
||||
/** This filter is documented in src/wp-includes/pluggable.php */
|
||||
/** This filter is documented in wp-includes/pluggable.php */
|
||||
return apply_filters( 'get_avatar', $avatar, $id_or_email, $args['size'], $args['default'], $args['alt'], $args );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue