[wp-trac] [WordPress Trac] #19044: $depth in start_el Walker_Category has null value
WordPress Trac
wp-trac at lists.automattic.com
Tue Oct 25 10:17:55 UTC 2011
#19044: $depth in start_el Walker_Category has null value
--------------------------+-----------------------------
Reporter: nukecpower | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Taxonomy | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
{{{
File wp-includes/category-template.php
Line: 829
}}}
Issue:
{{{
The variable $depth is not returning value.
start_el() - $depth not showing. (Always return zero)
start_lvl() - $depth works fine.
end_lvl() - $depth works fine.
}}}
{{{
/**
* @see Walker::start_el()
* @since 2.1.0
*
* @param string $output Passed by reference. Used to append
additional content.
* @param object $category Category data object.
* @param int $depth Depth of category in reference to parents.
* @param array $args
*/
function start_el(&$output, $category, $depth, $args) {
.....
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19044>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list