From 098d6a8504ae4ccc2c4353b1cf1c158f2c0b36c4 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 9 Dec 2013 00:48:15 +0000 Subject: [PATCH] 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 --- src/wp-admin/includes/misc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/misc.php b/src/wp-admin/includes/misc.php index d48a94fafb..5adb20d606 100644 --- a/src/wp-admin/includes/misc.php +++ b/src/wp-admin/includes/misc.php @@ -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' );