Skip to content

Commit

Permalink
Fix/231 Broken default avatar when Local Avatars Only is ✅
Browse files Browse the repository at this point in the history
  • Loading branch information
faisal-alvi committed Feb 28, 2024
1 parent ebf18d9 commit 5a0b2e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-simple-local-avatars.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public function get_avatar_data( $args, $id_or_email ) {
}

// Local only mode
if ( ! $simple_local_avatar_url && ! empty( $this->options['only'] ) ) {
if ( ! $simple_local_avatar_url ) {
$args['url'] = $this->get_default_avatar_url( $args['size'] );
}

Expand Down

0 comments on commit 5a0b2e6

Please sign in to comment.