Changeset 22393 for trunk/wp-admin/includes/plugin.php
- Timestamp:
- 11/06/2012 12:25:18 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/plugin.php
r21877 r22393 903 903 add_action( $hookname, $function ); 904 904 905 if ( empty($icon_url) ) 906 $icon_url = esc_url( admin_url( 'images/generic.png' ) ); 907 else 905 if ( empty($icon_url) ) { 906 $icon_url = 'none'; 907 $icon_class = 'menu-icon-generic '; 908 } else { 908 909 $icon_url = set_url_scheme( $icon_url ); 909 910 $new_menu = array( $menu_title, $capability, $menu_slug, $page_title, 'menu-top ' . $hookname, $hookname, $icon_url ); 910 $icon_class = ''; 911 } 912 913 $new_menu = array( $menu_title, $capability, $menu_slug, $page_title, 'menu-top ' . $icon_class . $hookname, $hookname, $icon_url ); 911 914 912 915 if ( null === $position )
Note: See TracChangeset
for help on using the changeset viewer.