Check thread_comments before loading the comment-reply script. props ptahdunbar, fixes #12932

git-svn-id: https://develop.svn.wordpress.org/trunk@14339 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2010-05-02 20:51:30 +00:00
parent 6847d9b024
commit c0e482cc0e
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@
?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
<?php if ( is_singular() && get_option('thread_comments') ) wp_enqueue_script( 'comment-reply' ); ?>
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_head(); ?>
</head>