Skip to content

Commit

Permalink
Hotfix for icons not showing
Browse files Browse the repository at this point in the history
Hotfix for a known issue in the plugin. Solution taken from [here](umdevelopera#13 (comment))
  • Loading branch information
Neverhorst committed Jul 9, 2024
1 parent 1a07432 commit aa7dc4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/admin/class-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public function save_metaboxes_data( $post_id, $post, $update ) {
$color = isset( $input['_color'] ) ? sanitize_hex_color( $input['_color'] ) : '';
update_post_meta( $post_id, '_color', $color );

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

$position = isset( $input['_position'] ) ? absint( $input['_position'] ) : '';
Expand Down

0 comments on commit aa7dc4f

Please sign in to comment.