contact-widgets icon indicating copy to clipboard operation
contact-widgets copied to clipboard

Throw dismissible admin notice if we find a font awesome collision

Open jonathanbardo opened this issue 9 years ago • 2 comments

Plugins like WP Tiles uses an older version of Font Awesome in the admin which cause collision with the newer version we are using.

We should check for common patterns in style registration and throw an admin notice if we find a possible collision. The admin notice should be dismissible by an admin.

jonathanbardo avatar Feb 23 '17 16:02 jonathanbardo

Related support issue: https://wordpress.org/support/topic/half-the-social-icons-are-missing/

frankiejarrett avatar Feb 23 '17 16:02 frankiejarrett

@jonathanbardo Perhaps a better way to "detect" Font Awesome would be to scan the global $wp_scripts['registered'] array for paths to font-awesome*.css? It seems more likely that plugins will not register a consistent script handle, and less likely that they would change the stylesheet file name.

frankiejarrett avatar Feb 23 '17 16:02 frankiejarrett