[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 20:44:48 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:
--------------------------+----------------------

Comment (by Looimaster):

 I understand why inline styles can't be added.

 I'll leave it as invalid but still I don't understand the following:
 "[...] the script handle doesn't exist yet, because that function is
 called later. [...]". If the handle doesn't exist then why it has status
 of ENQUEUED (true) in the first function?

 I would expect to get only the following outcomes: false/false/false/false
 (not registered, not enqueued), false/true/false/false (regsitered but not
 enqueued), true/true/false/false (regsitered and enqueued). I don't ever
 expect to get true/false/false/false (enqueued but not registered) and yet
 I get this result.

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


More information about the wp-trac mailing list