[wp-trac] [WordPress Trac] #45928: Twenty Nineteen: Add a filter to the $primay_color variable
WordPress Trac
noreply at wordpress.org
Wed Jan 16 21:50:10 UTC 2019
#45928: Twenty Nineteen: Add a filter to the $primay_color variable
-------------------------------------+---------------------
Reporter: allancole | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.1.1
Component: Bundled Theme | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-testing | Focuses:
-------------------------------------+---------------------
Comment (by mattwiebe):
I added `45928.1.patch` that will allow for filtering the default hue by a
child theme. All hardcoded instances of `199` are replaced with a function
call to `twentynineteen_get_default_hue()`.
I also truncated the conditional atop `twentynineteen_colors_css_wrap()`
because it's hooked to `wp_head` and will never appear anywhere other than
the frontend, including within a customizer view.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45928#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list