[wp-trac] [WordPress Trac] #14488: wp_enqueue_script in_footer doesn't work on WP known scripts
WordPress Trac
wp-trac at lists.automattic.com
Sat Jul 31 05:18:31 UTC 2010
#14488: wp_enqueue_script in_footer doesn't work on WP known scripts
--------------------------+-------------------------------------------------
Reporter: mcr2582 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.0.1
Severity: minor | Keywords: JS footer enqueue
--------------------------+-------------------------------------------------
I changed some plugin code from:
wp_enqueue_script('jquery-ui-sortable');
To:
wp_enqueue_script('jquery-ui-sortable',false,array(),false,true);
However, the script was not moved to the footer.
When I looked at the source for wp_enqueue_script, I can see that it's
because the check for $in_footer is inside the condition for $src being
defined. But built-in scripts don't require a source.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14488>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list