Changeset 19679 for trunk/wp-admin/includes/template.php
- Timestamp:
- 01/04/2012 11:03:46 PM (14 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/template.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r19665 r19679 23 23 var $db_fields = array ('parent' => 'parent', 'id' => 'term_id'); //TODO: decouple this 24 24 25 function start_lvl( &$output, $depth, $args) {25 function start_lvl( &$output, $depth = 0, $args = array() ) { 26 26 $indent = str_repeat("\t", $depth); 27 27 $output .= "$indent<ul class='children'>\n"; 28 28 } 29 29 30 function end_lvl( &$output, $depth, $args) {30 function end_lvl( &$output, $depth = 0, $args = array() ) { 31 31 $indent = str_repeat("\t", $depth); 32 32 $output .= "$indent</ul>\n"; 33 33 } 34 34 35 function start_el( &$output, $category, $depth, $args) {35 function start_el( &$output, $category, $depth, $args, $id = 0 ) { 36 36 extract($args); 37 37 if ( empty($taxonomy) ) … … 47 47 } 48 48 49 function end_el( &$output, $category, $depth, $args) {49 function end_el( &$output, $category, $depth = 0, $args = array() ) { 50 50 $output .= "</li>\n"; 51 51 }
Note: See TracChangeset
for help on using the changeset viewer.