Skip to content

Instantly share code, notes, and snippets.

@lancewillett
Created August 7, 2013 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lancewillett/6178854 to your computer and use it in GitHub Desktop.
Save lancewillett/6178854 to your computer and use it in GitHub Desktop.
P2 fix comment toggle issue, should only be on non-singular pages
Index: p2/inc/js.php
===================================================================
--- p2/inc/js.php (revision 14979)
+++ p2/inc/js.php (working copy)
@@ -271,7 +271,7 @@
$('.commentlist').show();
$('.discussion').hide();
}
- <?php if ( (int) $hide_threads ) : ?>
+ <?php if ( (int) $hide_threads && ! is_singular() ) : ?>
hideComments();
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment