Delaying wp_default_scripts() prevents enqueing
|Reported by:||nacin||Owned by:||nacin|
This is significantly mitigated by our change in 3.3 that caused some trouble, as most people fixed their code then, and more developers are watching for _deprecated and _doing_it_wrong notices. But, it still affects some poorly coded themes.
We can fix this by double-calling wp_default_scripts() — calling it immediately but then calling it again on init in case it fires too early.
The double-calling isn't new for us -- we do this when registering default taxonomies and post types as well.