diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php
index 6e332c247e..afeb62b1ac 100644
|
a
|
b
|
function uninstall_plugin( $plugin ) { |
| 1307 | 1307 | * e.g. 'dashicons-chart-pie'. |
| 1308 | 1308 | * * Pass 'none' to leave div.wp-menu-image empty so an icon can be added via CSS. |
| 1309 | 1309 | * @param int $position The position in the menu order this item should appear. |
| 1310 | | * @return string The resulting page's hook_suffix. |
| | 1310 | * @return string|false The resulting page's hook_suffix, or false if the menu item already exists. |
| 1311 | 1311 | */ |
| 1312 | 1312 | function add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function = '', $icon_url = '', $position = null ) { |
| 1313 | 1313 | global $menu, $admin_page_hooks, $_registered_pages, $_parent_pages; |
| 1314 | 1314 | |
| 1315 | 1315 | $menu_slug = plugin_basename( $menu_slug ); |
| 1316 | 1316 | |
| | 1317 | if ( isset( $_parent_pages[ $menu_slug ] ) ) { |
| | 1318 | return false; |
| | 1319 | } |
| | 1320 | |
| 1317 | 1321 | $admin_page_hooks[ $menu_slug ] = sanitize_title( $menu_title ); |
| 1318 | 1322 | |
| 1319 | 1323 | $hookname = get_plugin_page_hookname( $menu_slug, '' ); |