Fix #300 - Add comment-reply script when applicable

This commit is contained in:
Ben Word
2012-02-29 17:33:27 -07:00
parent 5a757dfda2
commit 63256f4667

View File

@@ -6,6 +6,10 @@ function roots_scripts() {
wp_register_script('jquery', '', '', '', false);
}
if (is_single() && comments_open() && get_option('thread_comments')) {
wp_enqueue_script('comment-reply');
}
wp_register_script('roots_plugins', get_template_directory_uri() . '/js/plugins.js', false, null, false);
wp_register_script('roots_script', get_template_directory_uri() . '/js/script.js', false, null, false);
wp_enqueue_script('roots_plugins');