diff --git a/includes/class-simple-local-avatars.php b/includes/class-simple-local-avatars.php index df0146e1..3a52bae0 100644 --- a/includes/class-simple-local-avatars.php +++ b/includes/class-simple-local-avatars.php @@ -276,7 +276,12 @@ public function get_avatar_data( $args, $id_or_email ) { // Local only mode if ( ! $simple_local_avatar_url ) { - $args['url'] = $this->get_default_avatar_url( $args['size'] ); + $default_url = $this->get_default_avatar_url( $args['size'] ); + if ( ! empty( $this->options['only'] ) ) { + $args['url'] = $default_url; + } else { + $args['default'] = $default_url; + } } if ( ! empty( $args['url'] ) ) { @@ -1470,6 +1475,7 @@ public function add_avatar_default_field( $defaults ) { +