You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
avatar_manager_get_avatar function is not using the $args argument from the get_avatar filter. This filter added support for $args on 4.2. Here is a link for reference:
this is the last line of the WP get_avatar function:
return apply_filters( 'get_avatar', $avatar, $id_or_email, $args['size'], $args['default'], $args['alt'], $args );
I recommend adding $args to avatar_manager_get_avatar and to avatar_manager_get_custom_avatar. Also in avatar_manager_get_custom_avatar add support for the $args elements.
The text was updated successfully, but these errors were encountered:
You are right, the $args parameter is missing and not yet handled. I'll update as soon as possible the dev branch with a fix. I can't promise a date yet as I'm dealing with some other ongoing projects at the moment. I'm also planning a new release in the near future (to merge the additions intro master and hopefully to fix other issues/feature requests too).
So if you have any other suggestions feel free to comment or open new issues (bugs to fix or features you would like to have). This would help me to plan ahead. Thanks!
avatar_manager_get_avatar function is not using the $args argument from the get_avatar filter. This filter added support for $args on 4.2. Here is a link for reference:
https://developer.wordpress.org/reference/functions/get_avatar/
this is the last line of the WP get_avatar function:
return apply_filters( 'get_avatar', $avatar, $id_or_email, $args['size'], $args['default'], $args['alt'], $args );
I recommend adding $args to avatar_manager_get_avatar and to avatar_manager_get_custom_avatar. Also in avatar_manager_get_custom_avatar add support for the $args elements.
The text was updated successfully, but these errors were encountered: