[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
Mon Mar 15 17:52:24 UTC 2021


#52750: WP 5.7 colors inconsistent in get_option( 'admin_color' ) since color
contrast changes
--------------------------------+------------------------
 Reporter:  ninetyninew         |       Owner:  audrasjb
     Type:  defect (bug)        |      Status:  reviewing
 Priority:  normal              |   Milestone:  5.7.1
Component:  Options, Meta APIs  |     Version:  5.7
 Severity:  normal              |  Resolution:
 Keywords:  reporter-feedback   |     Focuses:
--------------------------------+------------------------
Changes (by desrosj):

 * keywords:  needs-patch => reporter-feedback


Comment:

 @ninetyninew Are you able to provide more details? In my testing,
 `get_user_option( 'admin_color', get_current_user_id() );` is returning
 the string name of the user's selected color scheme. In my case, it was
 `fresh`.

 > To then use the selected color palette to apply those values dynamically
 to some elements.

 Is there more code run for this step that is not included in the ticket
 description? If not, is there potentially a plugin active that is
 filtering the `admin_color` value to be an object with the corresponding
 hex colors?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52750#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list