WordPress.org

Make WordPress Core

Changeset 14339


Ignore:
Timestamp:
05/02/2010 08:51:30 PM (11 years ago)
Author:
nacin
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyten/header.php

    r14282 r14339  
    3636    <link rel="profile" href="http://gmpg.org/xfn/11" />
    3737    <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
    38     <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
     38    <?php if ( is_singular() && get_option('thread_comments') ) wp_enqueue_script( 'comment-reply' ); ?>
    3939    <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    4040    <?php wp_head(); ?>
Note: See TracChangeset for help on using the changeset viewer.