Admin Menu: Set default value of $icon_url
in add_menu_page()
to dashicons-admin-generic
, fixes #26630.
git-svn-id: https://develop.svn.wordpress.org/trunk@27482 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d39e5ecafd
commit
292f70aba3
@ -991,7 +991,7 @@ function add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $func
|
||||
add_action( $hookname, $function );
|
||||
|
||||
if ( empty($icon_url) ) {
|
||||
$icon_url = 'none';
|
||||
$icon_url = 'dashicons-admin-generic';
|
||||
$icon_class = 'menu-icon-generic ';
|
||||
} else {
|
||||
$icon_url = set_url_scheme( $icon_url );
|
||||
|
Loading…
Reference in New Issue
Block a user