Changeset 57159
- Timestamp:
- 12/05/2023 01:37:52 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu.php
r56598 r57159 128 128 $menu_icon = 'dashicons-admin-post'; 129 129 if ( is_string( $ptype_obj->menu_icon ) ) { 130 // Special handling for data:image/svg+xml and Dashicons. 131 if ( str_starts_with( $ptype_obj->menu_icon, 'data:image/svg+xml;base64,' ) || str_starts_with( $ptype_obj->menu_icon, 'dashicons-' ) ) { 130 // Special handling for an empty div.wp-menu-image, data:image/svg+xml, and Dashicons. 131 if ( 'none' === $ptype_obj->menu_icon || 'div' === $ptype_obj->menu_icon 132 || str_starts_with( $ptype_obj->menu_icon, 'data:image/svg+xml;base64,' ) 133 || str_starts_with( $ptype_obj->menu_icon, 'dashicons-' ) 134 ) { 132 135 $menu_icon = $ptype_obj->menu_icon; 133 136 } else {
Note: See TracChangeset
for help on using the changeset viewer.