From d232d2acfd4dc9c69ab23345f1ef03fafcf6a9ae Mon Sep 17 00:00:00 2001 From: Dennis Ploetner Date: Thu, 30 Nov 2023 10:16:12 +0100 Subject: [PATCH] Revert "Adding msls_options_admin_get_flag_icon filter" --- includes/MslsAdminIcon.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/includes/MslsAdminIcon.php b/includes/MslsAdminIcon.php index ec101203..bfec183a 100644 --- a/includes/MslsAdminIcon.php +++ b/includes/MslsAdminIcon.php @@ -228,16 +228,7 @@ public function get_a(): string { */ public function get_icon(): string { if ( 'flag' === $this->iconType ) { - /** - * Use your own filename for the flag-icon - * @since 2.6.1 - * - * @param MslsAdminIcon $icon - * @param string $language - */ - $icon = apply_filters( 'msls_options_admin_get_flag_icon', $this, $this->language ); - - return sprintf( '%s', + return ! is_string( $this->language ) ? '' : sprintf( '%s', ( new IconSvg() )->get( $this->language ), $this->language );