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

DD32 wordpress at dd32.id.au
Fri Sep 12 06:25:22 GMT 2008


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 :)

On Fri, 12 Sep 2008 15:09:12 +1000, Ryan Boren <ryan at boren.nu> wrote:

> On Thu, Sep 11, 2008 at 7:25 PM, Idled Soul <idledsoul at gmail.com> wrote:
>> After submitting a comment to someone's comment, it was threaded  
>> underneath
>> their's. That's good obviously! Now, I'm not sure how far the depth of
>> threaded comments can go though? As I tried submitting a comment  
>> underneath
>> my own comment to someone else's, the "reply" link is no longer there.
>> However, the "reply" link is there under original one of mine... Just  
>> not on
>> the one threaded under it...
>>
>> So it's as such:
>>
>> Jane's comment (Reply link)
>> -----My comment under hers. (Reply link)
>> -------My comment under my own. - no reply link there.
>>
>> Would there be allowed for threaded comments, within threaded comments?  
>> Just
>> was wondering. It's not a big deal actually. I guess it's just expected  
>> that
>> comments wouldn't or shouldn't be threaded continuously within other
>> threaded comments. I think I just answered my own question ha ha.
>
> wp_list_comments(array('depth' => 0));
>
> That will allow unlimited nesting. The default is 3, at the moment.
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>




More information about the wp-testers mailing list