Stopped working after WP 5.6 Update – Possible Fix
-
After upgrading to WP 5.6, the plugin stopped working. Plugin wouldn’t insert the shortcode via the iconpicker. The error via the console window was pointing toward iconpickerItem.context not having a value.
A rather simple fix if your comfortable editing the plugin or maybe wait for Mickey Kay to update it.
File: better-font-awesome/vendor/mickey-kay/better-font-awesome-library/js/admin.js
At or around line 41, replace
// Set up icon insertion functionality. $( document ).on( 'iconpickerSelect', function( e ) { wp.media.editor.insert( icon_shortcode( e.iconpickerItem.context.title.replace( '.', '' ) ) );
with:
// Set up icon insertion functionality. $( document ).on( 'iconpickerSelected', function( e ) { wp.media.editor.insert( icon_shortcode( e.iconpickerItem.title.replace( '.', '' ) ) );
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Stopped working after WP 5.6 Update – Possible Fix’ is closed to new replies.