[wp-trac] [WordPress Trac] #49166: need a function to know if a dashicon exists.
WordPress Trac
noreply at wordpress.org
Sat Jan 11 14:14:58 UTC 2020
#49166: need a function to know if a dashicon exists.
-------------------------------+-------------------------------------------
Reporter: sebastienserre | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Resolution:
Keywords: 2nd-opinion has- | Focuses: ui, administration, template
patch |
-------------------------------+-------------------------------------------
Comment (by sebastienserre):
As per a discussion with @clorith on Slack #core, I had the idea on a
private project where I use the Dashicons.
I made a foreach to display social network and fall on ```<span
class="dashicons dashicons-linkedin"></span>``` which doesn't exist yet.
SO I searched how to know programatically is the dashicon exists or not
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49166#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list