Fix missing comment-reply JS (#2085)

This commit is contained in:
Daniel Roe
2018-07-18 23:37:51 +01:00
committed by Nathan Knowler
parent 61f923413a
commit a9312c0633

View File

@@ -13,6 +13,10 @@ use Roots\Sage\Template\BladeProvider;
add_action('wp_enqueue_scripts', function () {
wp_enqueue_style('sage/main.css', asset_path('styles/main.css'), false, null);
wp_enqueue_script('sage/main.js', asset_path('scripts/main.js'), ['jquery'], null, true);
if (is_single() && comments_open() && get_option('thread_comments')) {
wp_enqueue_script('comment-reply');
}
}, 100);
/**