all_deps($wp_scripts->queue); $scripts = array(); foreach ($wp_scripts->queue as $key => $handle) { $skip_scripts = array('jquery', 'roots_script', 'roots_plugins'); $src = $wp_scripts->registered[$handle]->src; unset($wp_scripts->queue[$key]); $wp_scripts->done[] = $handle; if (!in_array($handle, $skip_scripts)) { $scripts[] = ''; } } echo "\t" . implode("\n\t", $scripts) . "\n"; $template_uri = get_template_directory_uri(); echo "\t\n"; echo "\t\n"; $wp_scripts->reset(); return $wp_scripts->done; } ?>