Created
February 24, 2010 01:27
-
-
Save sproutventure/312963 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Create and array of all parent comments | |
$parents = array(); | |
foreach ($comments as $cmnt) { | |
$parents[] = $cmnt->comment_parent; | |
} | |
// If the comment ID is in the array of parent above add a class | |
if ( in_array( $comment->comment_ID, $parents ) ){ | |
$c[] = 'threaded-comment'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment