[wp-trac] [WordPress Trac] #24813: wp_add_inline_style behaviour changes with SCRIPT_DEBUG

WordPress Trac noreply at wordpress.org
Fri Aug 23 16:10:56 UTC 2013


#24813: wp_add_inline_style behaviour changes with SCRIPT_DEBUG
------------------------------+------------------
 Reporter:  stephenharris     |       Owner:
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  3.7
Component:  General           |     Version:  3.3
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |
------------------------------+------------------

Comment (by stephenharris):

 Replying to [comment:6 nacin]:
 > Got it, thanks. I read it as the reverse. Is this (from the ticket
 description) wrong?

 I've had to double check this every time I've looked at this :). Nope the
 description is correct. Standard behaviour is that the user is responsible
 for adding the `<style>` tags. But in `SCRIPT_DEBUG`,
 `wp_add_inline_style()` adds its own `<style>` tags. The patch stops it
 from doing that.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24813#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list