﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
18541,Add comments_open() conditional to Twenty Eleven's comment-reply.js call,philiparthurmoore,,"The current code used to include `comment-reply.js` in Twenty Eleven's `header.php` is as follows:

{{{
    if ( is_singular() && get_option( 'thread_comments' ) )
        wp_enqueue_script( 'comment-reply' );
}}}

If a singular page is being displayed and comments are closed, the script is still loaded. The code should be adjusted as follows:

{{{
    if ( is_singular() && get_option( 'thread_comments' ) && comments_open() )
        wp_enqueue_script( 'comment-reply' );
}}}

The expected output of this code is for `comment-reply.js` to only be loaded on singular pages that have commenting currently open.",enhancement,closed,normal,,Bundled Theme,3.2,minor,wontfix,has-patch,
