Twenty Twelve: no need for threaded comment reply JS to load if comments are closed. Props iandstewart, see #19978.

git-svn-id: http://svn.automattic.com/wordpress/trunk@19961 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
lancewillett 2012-02-21 06:41:20 +00:00
parent 02ea26c01f
commit 83c7b1ef00
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@
<script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
<![endif]-->
<?php
if ( is_singular() && get_option( 'thread_comments' ) )
if ( is_singular() && comments_open() && get_option( 'thread_comments' ) )
wp_enqueue_script( 'comment-reply' );
wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() );