Changeset 8079
- Timestamp:
- 06/13/2008 11:52:07 PM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/categories.php
r8078 r8079 175 175 <tbody id="the-list" class="list:cat"> 176 176 <?php 177 $categories = array(); 178 cat_rows(0, 0, $categories, $pagenum, $catsperpage); 177 cat_rows(0, 0, 0, $pagenum, $catsperpage); 179 178 ?> 180 179 </tbody> -
trunk/wp-admin/includes/template.php
r8078 r8079 6 6 7 7 // Ugly recursive category stuff. 8 function cat_rows( $parent = 0, $level = 0, &$categories = 0, $page = 1, $per_page = 20, &$count = 0 ) { 8 function cat_rows( $parent = 0, $level = 0, $categories = 0, $page = 1, $per_page = 20 ) { 9 $count = 0; 10 _cat_rows($categories, $count, $parent, $level, $page, $per_page); 11 } 12 13 function _cat_rows( &$categories, &$count, $parent = 0, $level = 0, $page = 1, $per_page = 20 ) { 9 14 if ( empty($categories) ) { 10 15 $args = array('hide_empty' => 0); … … 57 62 58 63 if ( isset($children[$category->term_id]) ) 59 cat_rows( $category->term_id, $level + 1, $categories, $page, $per_page, $count);64 _cat_rows( $categories, $count, $category->term_id, $level + 1, $page, $per_page ); 60 65 61 66 }
Note: See TracChangeset
for help on using the changeset viewer.