Skip to content

Commit

Permalink
Revert "Adding msls_options_admin_get_flag_icon filter"
Browse files Browse the repository at this point in the history
  • Loading branch information
lloc authored Nov 30, 2023
1 parent 7b4d50c commit d232d2a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions includes/MslsAdminIcon.php
Original file line number Diff line number Diff line change
Expand Up @@ -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( '<span class="flag-icon %s">%s</span>',
return ! is_string( $this->language ) ? '' : sprintf( '<span class="flag-icon %s">%s</span>',
( new IconSvg() )->get( $this->language ),
$this->language
);
Expand Down

0 comments on commit d232d2a

Please sign in to comment.