[wp-trac] Re: [WordPress Trac] #5004: Allow Setting The Depth On
wp_list_categories
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 10 19:56:53 GMT 2008
#5004: Allow Setting The Depth On wp_list_categories
---------------------------------------------------+------------------------
Reporter: intoxination | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone: 2.5
Component: General | Version: 2.3
Severity: normal | Resolution:
Keywords: category depth has-patch dev-feedback |
---------------------------------------------------+------------------------
Comment (by palamedes):
It looks like this has been "Mostly" implemented with one minor change.
Change line 292 to;
$depth = $r['depth']; // Walk requested depth (0 being full depth).
This way the user can actually specify the depth they want it to be walked
via the argument. Otherwise it was just 0 or -1 which doesn't actually do
what this RFE had intended.
(Heres the diff since I'm not sure how you guys want it..)
[palamedes]$ diff category-template.php category-template.php.old
253c253
< 'echo' => 1, 'depth' => 0
---
> 'echo' => 1
292c292
< $depth = $r['depth']; // Walk requested depth (0
being full depth).
---
> $depth = 0; // Walk the full depth.
--
Ticket URL: <http://trac.wordpress.org/ticket/5004#comment:3>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list