[wp-trac] [WordPress Trac] #22830: script-loader.php Does not respect dependancies
WordPress Trac
noreply at wordpress.org
Sun Dec 9 00:09:25 UTC 2012
#22830: script-loader.php Does not respect dependancies
-----------------------------+--------------------------
Reporter: pathawks | Type: defect (bug)
Status: new | Priority: normal
Milestone: Awaiting Review | Component: General
Version: | Severity: normal
Keywords: |
-----------------------------+--------------------------
I am trying to load an external version of jQuery (because of reasons),
but unless I disable `CONCATENATE_SCRIPTS`, `script-loader.php` will load
everything that depends on jQuery, and then jQuery will be loaded in the
next line.
This obviously breaks everything that depends on jQuery.
To register my custom library, I am calling the following:
{{{
wp_deregister_style( 'jquery' );
wp_register_style( 'jquery', 'http://example.com/jquery.js', array(),
'1.8.3' );
}}}
This results in the output:
{{{
<script type='text/javascript' src='/wp-admin/load-
scripts.php?…'></script>
<script type='text/javascript'
src='http://example.com/jquery.js'></script>
}}}
I don't see any reason why this shouldn't work.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22830>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list