WordPress.org

Make WordPress Core

Ticket #18541: twenty-eleven-comment-reply-js.patch

File twenty-eleven-comment-reply-js.patch, 572 bytes (added by philiparthurmoore, 3 years ago)
  • twentyeleven/header.php

     
    5555        /* We add some JavaScript to pages with the comment form 
    5656         * to support sites with threaded comments (when in use). 
    5757         */ 
    58         if ( is_singular() && get_option( 'thread_comments' ) ) 
     58        if ( is_singular() && get_option( 'thread_comments' ) && comments_open() ) 
    5959                wp_enqueue_script( 'comment-reply' ); 
    6060 
    6161        /* Always have wp_head() just before the closing </head>