[wp-trac] [WordPress Trac] #33471: wp_enqueue_style() doesn't register it in parallel wp_enqueue_scripts

WordPress Trac noreply at wordpress.org
Wed Sep 23 18:57:58 UTC 2015


#33471: wp_enqueue_style() doesn't register it in parallel wp_enqueue_scripts
--------------------------+----------------------
 Reporter:  Looimaster    |       Owner:
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:  4.3
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by johnbillion):

 * status:  new => closed
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 This is because `wp_add_inline_style( 'my-style'...)` is being called
 before `wp_enqueue_style( 'my-style'...)`.

 I don't think there's a bug here. You're trying to add inline data to an
 asset that isn't registered.

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


More information about the wp-trac mailing list