Error on custom class on get_avatar
-
Using the following code I get some notices and no css class is outputed in the avatar. From the notice it seems the plugin is connected. Are you familiar with this issue?
If I don’t include $img_args it outputs without notice.
<?php $img_args = array('class'=>'rounded'); echo get_avatar($user['ID'], 130, '', $img_args); ?>
Errors:
Notice: Array to string conversion in /app/public/wp-includes/formatting.php on line 1031
Notice: Array to string conversion in /app/public/wp-content/plugins/wp-user-avatar/includes/class-wp-user-avatar-functions.php on line 358
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Error on custom class on get_avatar’ is closed to new replies.