[wp-trac] [WordPress Trac] #31785: admin_footer
WordPress Trac
noreply at wordpress.org
Sat Mar 28 12:13:28 UTC 2015
#31785: admin_footer
----------------------------+------------------------------
Reporter: Mikayel | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 4.1.1
Severity: normal | Resolution: invalid
Keywords: | Focuses:
----------------------------+------------------------------
Changes (by MattyRob):
* status: new => closed
* resolution: => invalid
Comment:
The error seems to be because dojo is trying to load jQuery from the same
CDN but map-forming the URL, I suspect that you see it working if you
manually force dojo to load after jQuery because jQuery is detected
already and not from a 404 URI.
A fix that works for me is to use a slightly later hook:
{{{
add_action('admin_print_footer_scripts', 'my_custom_js', 100);
}}}
I suspect this is the hook used to load footer javascript libraries so
hooking to that with a lower priority works fine in my testing.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31785#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list