Skip to content

Commit

Permalink
Merge pull request #255 from lloc/revert-150-feature/admin-icon-filter
Browse files Browse the repository at this point in the history
Revert "Adding msls_options_admin_get_flag_icon filter"
  • Loading branch information
lloc authored Nov 30, 2023
2 parents 7b4d50c + d232d2a commit 5f7fb32
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 5f7fb32

Please sign in to comment.