Skip to content

Commit

Permalink
Merge pull request #260 from 10up/fix/231
Browse files Browse the repository at this point in the history
Fix/231 Broken default avatar when `Local Avatars Only` is unchecked
  • Loading branch information
faisal-alvi authored Mar 11, 2024
2 parents ebf18d9 + 5a0b2e6 commit bcaefb4
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 bcaefb4

Please sign in to comment.