[wp-trac] [WordPress Trac] #30032: Add ID attribute to style element from wp_add_inline_style()

WordPress Trac noreply at wordpress.org
Sat Oct 18 18:35:05 UTC 2014


#30032: Add ID attribute to style element from wp_add_inline_style()
---------------------------+-----------------------------
 Reporter:  westonruter    |       Owner:  SergeyBiryukov
     Type:  enhancement    |      Status:  closed
 Priority:  normal         |   Milestone:  4.1
Component:  Script Loader  |     Version:
 Severity:  normal         |  Resolution:  fixed
 Keywords:  has-patch      |     Focuses:
---------------------------+-----------------------------

Comment (by westonruter):

 Replying to [comment:4 obenland]:
 > What if there is more than one inline style added to one handle?

 The `after` data for the style dependency is actually an array and
 `print_inline_style()` concatenates the array into a single string:
 https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class.wp-
 styles.php#L144

 So adding multiple inline styles won't be a problem.

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


More information about the wp-trac mailing list