Make WordPress Core


Ignore:
Timestamp:
09/16/2012 10:51:44 PM (12 years ago)
Author:
azaozz
Message:

Admin menu: add phpdoc/inline comments describing the usage of the param $icon_url in add_menu_page(), add string 'none' to be used when a menu icon is added from CSS, switch core items in the admin menu to use 'none', fixes #21349

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/plugin.php

    r21838 r21877  
    885885 * @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
    886886 * @param callback $function The function to be called to output the content for this page.
    887  * @param string $icon_url The url to the icon to be used for this menu
     887 * @param string $icon_url The url to the icon to be used for this menu. Using 'none' would leave div.wp-menu-image empty
     888 *                         so an icon can be added as background with CSS.
    888889 * @param int $position The position in the menu order this one should appear
    889890 *
Note: See TracChangeset for help on using the changeset viewer.