Ticket #34637: 34637.2.diff
File 34637.2.diff, 761 bytes (added by , 9 years ago) |
---|
-
src/wp-admin/menu.php
86 86 $ptype_menu_position = is_int( $ptype_obj->menu_position ) ? $ptype_obj->menu_position : ++$_wp_last_object_menu; // If we're to use $_wp_last_object_menu, increment it first. 87 87 $ptype_for_id = sanitize_html_class( $ptype ); 88 88 89 $menu_icon = $ptype_obj->hierarchical ? 'dashicons-admin-page' : 'dashicons-admin-post'; 89 90 if ( is_string( $ptype_obj->menu_icon ) ) { 90 91 // Special handling for data:image/svg+xml and Dashicons. 91 92 if ( 0 === strpos( $ptype_obj->menu_icon, 'data:image/svg+xml;base64,' ) || 0 === strpos( $ptype_obj->menu_icon, 'dashicons-' ) ) {