mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Avoid notices when default and light are not registered color schemes. see #26468.
git-svn-id: https://develop.svn.wordpress.org/trunk@26814 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -568,7 +568,7 @@ function admin_color_scheme_picker() {
|
||||
|
||||
if ( isset( $_wp_admin_css_colors['fresh'] ) ) {
|
||||
// Set Default ('fresh') and Light should go first.
|
||||
$_wp_admin_css_colors = array_merge( array( 'fresh' => '', 'light' => '' ), $_wp_admin_css_colors );
|
||||
$_wp_admin_css_colors = array_filter( array_merge( array( 'fresh' => '', 'light' => '' ), $_wp_admin_css_colors ) );
|
||||
}
|
||||
|
||||
$current_color = get_user_option( 'admin_color' );
|
||||
|
||||
Reference in New Issue
Block a user