Make WordPress Core

Opened 6 years ago

Last modified 4 years ago

#43742 new enhancement

Add $_wp_admin_css_colors variable to front-end

Reported by: danieltj's profile danieltj Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.0
Component: General Keywords: reporter-feedback
Focuses: css Cc:

Description

I've developed a plugin that uses the admin colour scheme functionality.

When a colour scheme is registered (using wp_admin_css_color), it's added to the $_wp_admin_css_colors variable. This is only accessible within the dashboard though so if you try and use that variable on the front-end, it returns null (doesn't exist).

Can this be made accessible on the front-end too?

Change History (2)

#1 @sabernhardt
4 years ago

  • Focuses css added
  • Keywords reporter-feedback added

@danieltj Thanks for the ticket!

I imagine you want the admin toolbar to use the same color scheme when viewing the live site as it does in the back-end.

Would do you have another reason and/or location to re-purpose the admin color scheme?

This ticket was mentioned in Slack in #core-css by sabernhardt. View the logs.


4 years ago

Note: See TracTickets for help on using tickets.