Fix missing comment-reply JS (#2085)
This commit is contained in:
committed by
Nathan Knowler
parent
61f923413a
commit
a9312c0633
@@ -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);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user