Twenty Twelve: no need for threaded comment reply JS to load if comments are closed. Props iandstewart, see #19978.
git-svn-id: https://develop.svn.wordpress.org/trunk@19961 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c3e0e18f8a
commit
df599d08f0
@ -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
Block a user