WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #25247, comment 11


Ignore:
Timestamp:
12/12/2014 05:28:54 PM (5 years ago)
Author:
gitlost
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25247, comment 11

    initial v1  
    1 I think the no src issue is a bit of a red herring. The real problem here is that the do_items() loop is removing an item from the to_do list whether or not it succeeded. An issue reported by helgatheviking on WP stackexchange ([http://wordpress.stackexchange.com/questions/168688/loading-a-script-with-a-dependency-is-unloading-another-scripts-dependency Loading a script with a dependency, is unloading another script's dependency] is another symptom of the problem, which can be seen simply with this setup:
     1I think the no src issue is a bit of a red herring. The real problem here - as stated by the OP markoheijnen - is that the do_items() loop is removing an item from the to_do list whether or not it succeeded. An issue reported by helgatheviking on WP stackexchange ([http://wordpress.stackexchange.com/questions/168688/loading-a-script-with-a-dependency-is-unloading-another-scripts-dependency Loading a script with a dependency, is unloading another script's dependency] is another symptom of the problem, which can be seen simply with this setup:
    22{{{
    33                $scripts = new WP_Scripts;