Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account Tab Icon is not showing #13

Open
temereva opened this issue May 26, 2024 · 4 comments
Open

Account Tab Icon is not showing #13

temereva opened this issue May 26, 2024 · 4 comments

Comments

@temereva
Copy link

On the Account Tab edit screen, the Appearance metabox shows a message "The selected icon is using an outdated version. Please select the icon above to use latest version."

The plugin is up to date, the icon list shows icons from "fasfa-..." (Font Awesome?) set, not the original "UM" icon set. The icon is being saved and added to the HTML correctly, but it's not showing on the front-end. Possibly because the font itself is not loaded? I'd preferred not to enable one more icon font though, but used the existing UM icon font. Is there is a way to do that?

Thank you!

@cryptexvinci
Copy link

Go to class-admin.php. Then change line 278 with this
$icon = isset( $input['_icon'] ) ? esc_attr( $input['_icon'] ) : '';

@heidipowers
Copy link

Hello, I made this update but still see the same error. Is it still the recommended fix? Thank you so much!

@heidipowers
Copy link

heidipowers commented Jun 6, 2024

chatGPT suggested this fix which resolved it for me:

$icon = isset( $input['_icon'] ) ? wp_strip_all_tags( $input['_icon'] ) : '';
update_post_meta( $post_id, '_icon', $icon );

@dokh
Copy link

dokh commented Jul 9, 2024

wp_strip_all_tags version worked for me too.

Neverhorst added a commit to wirtschaftsphysik-alumni/um-account-tabs that referenced this issue Jul 9, 2024
Hotfix for a known issue in the plugin. Solution taken from [here](umdevelopera#13 (comment))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants