Fix #279 - Output enqueued scripts in proper order

This commit is contained in:
Ben Word
2012-02-13 17:28:14 -07:00
parent be3e67f862
commit 5ec10a5296

View File

@@ -16,10 +16,13 @@ if (!is_admin()) {
function roots_print_scripts() {
global $wp_scripts;
$wp_scripts->all_deps($wp_scripts->queue);
$scripts = $locales = array();
$queue = $wp_scripts->queue;
$wp_scripts->all_deps($queue);
foreach ($wp_scripts->queue as $key => $handle) {
foreach ($wp_scripts->to_do as $key => $handle) {
$skip_scripts = array('jquery', 'roots_script', 'roots_plugins');
$src = $wp_scripts->registered[$handle]->src;