Skip to content

Commit

Permalink
Fix missing comment-reply JS (roots#2085)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe authored and knowler committed Jul 18, 2018
1 parent 61f9234 commit a9312c0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
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);

/**
Expand Down

0 comments on commit a9312c0

Please sign in to comment.