From 68fe6bb2167953cbd8acd63b1a88dc107eb818d7 Mon Sep 17 00:00:00 2001 From: Faisal Alvi Date: Tue, 14 May 2024 01:18:50 +0530 Subject: [PATCH] Revert "Fix/231 Broken default avatar when `Local Avatars Only` is unchecked" --- includes/class-simple-local-avatars.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-simple-local-avatars.php b/includes/class-simple-local-avatars.php index df0146e..8bd49a2 100644 --- a/includes/class-simple-local-avatars.php +++ b/includes/class-simple-local-avatars.php @@ -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'] ); }