wpua_get_avatar_url not passing args[size] down
-
Hi, I am using this lib with GraphQL. It works but it does not respect the size.
I debugged to search for the problem and I found that in the function wpua_get_avatar_url, the received parameter $args[‘size’] is not being passed down to $this->get_wp_user_avatar_src at line 56.
My suggestion is to change line 56 from:
$url = $this->get_wp_user_avatar_src( $user_id);
to:
$url = $this->get_wp_user_avatar_src( $user_id, $args['size'] ?? '' );
Is this project in a public repository like GitHub? I can send a Pull Request with the modification.
Thanks!
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘wpua_get_avatar_url not passing args[size] down’ is closed to new replies.