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:
parent
02ea26c01f
commit
83c7b1ef00
|
@ -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() );
|
||||
|
|
Loading…
Reference in New Issue