[wp-trac] [WordPress Trac] #52750: WP 5.7 colors inconsistent in get_option( 'admin_color' ) since color contrast changes
WordPress Trac
noreply at wordpress.org
Wed Mar 10 08:05:47 UTC 2021
#52750: WP 5.7 colors inconsistent in get_option( 'admin_color' ) since color
contrast changes
--------------------------+-----------------------------
Reporter: ninetyninew | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.7
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
Admin colors have changed in 5.7, we have developed some plugins which
use:
{{{
get_user_option( 'admin_color', get_current_user_id() );
}}}
To then use the selected color palette to apply those values dynamically
to some elements.
This returns an array of admin colors based off the selected admin color
palette by the user:
{{{
stdClass Object ( [name] => Default [url] => [colors] => Array ( [0] =>
#1d2327 [1] => #2c3338 [2] => #3582c4 [3] => #72aee6 ) [icon_colors] =>
Array ( [base] => #a7aaad [focus] => #72aee6 [current] => #fff ) )
}}}
These return values do not seem in sync with the new colors.
e.g. `#3582c4` is returned for the primary color (I think this is the old
blue?), I am expecting this to return the new value of `#2271b1` (I
think?)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52750>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list