Make WordPress Core

Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#8018 closed defect (bug) (fixed)

$r['depth'] during the wp_list_comments should be $r['max_depth']

Reported by: ShaneF Owned by:
Milestone: 2.7 Priority: normal
Severity: normal Version: 2.7
Component: Themes Keywords:
Focuses: Cc:


After a lengthy discussion on IRC (http://wordpress-dev.chanlogs.automattic.com/?ym=2008-10&file=wordpress-dev@2008-10-31) about the difference between depth and max_depth when it comes to the number of nested items max_depth will be better in the long run when it comes to keeping everything straight.

In customer callbacks during the wp_list_comments part, you can remove 'depth' => $argsdepth? as this patch aims to keep that away. You can always override max_depth using an argument or change the settings themselves.

Attachments (1)

comment_threaded.patch (3.1 KB) - added by ShaneF 12 years ago.

Download all attachments as: .zip

Change History (2)

#1 @ryan
12 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [9424]) depth? during the wp_list_comments should be max_depth?. Props ShaneF. fixes #8018

Note: See TracTickets for help on using tickets.