[wp-trac] [WordPress Trac] #31785: admin_footer

WordPress Trac noreply at wordpress.org
Wed Apr 1 02:48:33 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:
----------------------------+------------------------------

Comment (by Mikayel):

 Replying to [comment:14 MattyRob]:
 > 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.


 Thank you very much! This is working well!

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


More information about the wp-trac mailing list