[wp-testers] Tested 2.7 threaded comments...

DD32 wordpress at dd32.id.au
Sat Sep 13 01:41:13 GMT 2008


On Sat, 13 Sep 2008 11:21:30 +1000, Idled Soul <idledsoul at gmail.com> wrote:

> DD32 wrote:
>> Just a note on this:
>> It seems setting a depth of 0 currently results in, A depth of zero!,
>> Ie. You cannot nest comments at all.
>>
>> I've got a patch to change it from:
>> <?php if ( $depth < $args['depth'] ) echo
>> comment_reply_link(array('add_below' => 'div-comment')) ?>
>> to
>> <?php if ( 0 == $args['depth'] || $depth < $args['depth'] ) echo
>> comment_reply_link(array('add_below' => 'div-comment')) ?>
>>
>> which would result in the result that Ryan was expecting :)
>
> Thanks Ryan and DD32 for explaining this, and then creating the patch
> DD32. :D Now, since your patch was committed to Trunk, using this
> function in comments.php file:
>
> wp_list_comments(array('depth' => 0));
>
> would allow unlimited Comment Threading, right? Or, what exactly will  
> work to allow unlimited Threading? Thanks in advance!

Yep, It allows for unlimited threading :) I've implemented it on my blog,  
and its working well (But no-one comments there anyway to see it...)



More information about the wp-testers mailing list