Make WordPress Core


Ignore:
Timestamp:
10/19/2026 09:25:08 PM (44 hours ago)
Author:
mcsf
Message:

Administration: Replace Dashicons in admin bar and sidebar with wp-icons.

Replace the usage of Dashicons in admin bar and sidebar with @wordpress/icons via the newly-introduced wp_get_icon() function, which outputs an inline SVG to be rendered.

Developed in ​https://github.com/WordPress/wordpress-develop/pull/12270.

Props fushar, wildworks, tyxla, mcsf, mciampini, aduth, peterwilsoncc, jeffpaul, fcoveram, keoshi, joen, afercia, ugyensupport, mrwweb.
Fixes #65089.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r64499 r64583  
    17651765 *                                                         -- this should begin with 'data:image/svg+xml;base64,'. Pass the name
    17661766 *                                                         of a Dashicons helper class to use a font icon, e.g.
    1767  *                                                        'dashicons-chart-pie'. Pass 'none' to leave div.wp-menu-image empty
    1768  *                                                         so an icon can be added via CSS. Defaults to use the posts icon.
     1767 *                                                        'dashicons-chart-pie'. Pass the namespaced name of a registered icon
     1768 *                                                         to render it as an inline SVG, e.g. 'core-admin/pin'. Pass 'none'
     1769 *                                                         to leave div.wp-menu-image empty so an icon can be added via CSS.
     1770 *                                                         Defaults to use the posts icon.
    17691771 *     @type string|array $capability_type                 The string to use to build the read, edit, and delete capabilities.
    17701772 *                                                         May be passed as an array to allow for alternative plurals when using
Note: See TracChangeset for help on using the changeset viewer.