wp_enqueue_script in_footer doesn't work on WP known scripts
|Reported by:||mcr2582||Owned by:||sorich87|
I changed some plugin code from:
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.
Change History (14)
- Cc sorich87@… added
- Keywords has-patch added; JS footer enqueue removed
- Owner set to sorich87
- Status changed from new to accepted
comment:10 @wonderboymusic — 8 weeks ago
- Resolution set to fixed
- Status changed from accepted to closed