mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Admin Menu: Set default value of $icon_url
in add_menu_page()
to dashicons-admin-generic
, fixes #26630.
Built from https://develop.svn.wordpress.org/trunk@27482 git-svn-id: http://core.svn.wordpress.org/trunk@27326 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f078f3e10e
commit
3e356d7bdf
@ -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