From 7b3910917dcc156d3181c71a01f3eb6f1039b05b Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 8 Dec 2013 07:14:10 +0000 Subject: [PATCH] About screen: Only show the pick-a-color section if there are 2 or more of the eight new color schemes available. And only show the eight core schemes. This hides the section in develop.svn /src's directory (use /build for colors) and when a plugin is manipulating/unregistering colors. In both situations, which are rare, losing the section is fine. This removes a fallback image as we were previously showing the section in these cases; the rest of the page shows off the design (and color opportunities) well enough on its own to avoid this confusing section. see #26387. Built from https://develop.svn.wordpress.org/trunk@26795 git-svn-id: http://core.svn.wordpress.org/trunk@26682 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/about.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/wp-admin/about.php b/wp-admin/about.php index be9ee28f6b..a26eae95fb 100644 --- a/wp-admin/about.php +++ b/wp-admin/about.php @@ -75,26 +75,28 @@ include( ABSPATH . 'wp-admin/admin-header.php' );
+ 1 && has_action( 'admin_color_scheme_picker' ) ) : ?>

-

- - 1 && has_action('admin_color_scheme_picker') ) :?> +

- - - -

visit your profile.' ), get_edit_profile_url( $user_id ) ); ?>

+

visit your profile.' ), get_edit_profile_url( get_current_user_id() ) ); ?>


+