Skip to content

Instantly share code, notes, and snippets.

@kachi
Created March 10, 2012 17:41
Show Gist options
  • Save kachi/2012257 to your computer and use it in GitHub Desktop.
Save kachi/2012257 to your computer and use it in GitHub Desktop.
<?php
function enable_threaded_comments(){
if (is_singular() AND comments_open() AND (get_option('thread_comments') == 1)) {
wp_enqueue_script('comment-reply');
}
}
add_action('get_header', 'enable_threaded_comments');
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment