Skip to content

Commit

Permalink
Revert "Fix/231 Broken default avatar when Local Avatars Only is un…
Browse files Browse the repository at this point in the history
…checked"
  • Loading branch information
faisal-alvi authored May 13, 2024
1 parent a3b5c67 commit 68fe6bb
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 ) {
if ( ! $simple_local_avatar_url && ! empty( $this->options['only'] ) ) {
$args['url'] = $this->get_default_avatar_url( $args['size'] );
}

Expand Down

0 comments on commit 68fe6bb

Please sign in to comment.