Changeset 26664 for trunk/src/wp-admin/menu.php
- Timestamp:
- 12/05/2013 06:37:20 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/menu.php
r25133 r26664 108 108 $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. 109 109 $ptype_for_id = sanitize_html_class( $ptype ); 110 110 111 if ( is_string( $ptype_obj->menu_icon ) ) { 111 $menu_icon = esc_url( $ptype_obj->menu_icon ); 112 // Special handling for data:image/svg+xml and Dashicons. 113 if ( 0 === strpos( $ptype_obj->menu_icon, 'data:image/svg+xml;base64,' ) || 0 === strpos( $ptype_obj->menu_icon, 'dashicons-' ) ) { 114 $menu_icon = $ptype_obj->menu_icon; 115 } else { 116 $menu_icon = esc_url( $ptype_obj->menu_icon ); 117 } 112 118 $ptype_class = $ptype_for_id; 113 119 } else {
Note: See TracChangeset
for help on using the changeset viewer.