[wp-trac] [WordPress Trac] #20836: wp_add_inline_style does not work with concatenated stylesheets
WordPress Trac
noreply at wordpress.org
Mon Jan 14 22:24:57 UTC 2013
#20836: wp_add_inline_style does not work with concatenated stylesheets
-------------------------------+------------------------------
Reporter: stephenh1988 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Appearance | Version: 3.3.2
Severity: normal | Resolution:
Keywords: reporter-feedback |
-------------------------------+------------------------------
Comment (by stephenh1988):
Plug-ins / Themes can use `wp_add_inline_style()` to add in-line styles to
core (or any other) styles. It should be 'attached' to (albeit not
compressed, but printed after) the style-sheet you're adding it to.
Currently what is printed is not the attached styles, but instead the word
"Array" is printed.
As a contrived example
{{{
wp_add_inline_style('admin-bar','#wpadminbar {background: blue;}');
}}}
Works when `SCRIPT_DEBUG` is true, but not if its false.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20836#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list