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
git-svn-id: http://core.svn.wordpress.org/trunk@21877 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -884,7 +884,8 @@ function uninstall_plugin($plugin) {
|
||||
* @param string $capability The capability required for this menu to be displayed to the user.
|
||||
* @param string $menu_slug The slug name to refer to this menu by (should be unique for this menu)
|
||||
* @param callback $function The function to be called to output the content for this page.
|
||||
* @param string $icon_url The url to the icon to be used for this menu
|
||||
* @param string $icon_url The url to the icon to be used for this menu. Using 'none' would leave div.wp-menu-image empty
|
||||
* so an icon can be added as background with CSS.
|
||||
* @param int $position The position in the menu order this one should appear
|
||||
*
|
||||
* @return string The resulting page's hook_suffix
|
||||
|
||||
Reference in New Issue
Block a user