Changeset 974
- Timestamp:
- 03/12/2004 11:51:16 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/template-functions-category.php
r962 r974 234 234 function wp_list_cats($args = '') { 235 235 parse_str($args, $r); 236 if (!$r['optionall']) $r['optionall'] = 1; 237 if (!$r['all']) $r['all'] = 'All'; 238 if (!$r['sort_column']) $r['sort_column'] = 'ID'; 239 if (!$r['file']) $r['file'] = ''; 240 if (!$r['list']) $r['list'] = true; 241 if (!$r['optiondates']) $r['optiondates'] = 0; 242 if (!$r['hide_empty']) $r['hide_empty'] = 1; 243 if (!$r['use_desc_for_title']) $r['use_desc_for_title'] = 1; 244 if (!$r['children']) $r['children'] = true; 245 if (!$r['child_of']) $r['child_of'] = 0; 246 if (!$r['categories']) $r['categories'] = 0; 247 if (!$r['recurse']) $r['recurse'] = 0; 236 if (!isset($r['optionall'])) $r['optionall'] = 1; 237 if (!isset($r['all'])) $r['all'] = 'All'; 238 if (!isset($r['sort_column'])) $r['sort_column'] = 'ID'; 239 if (!isset($r['sort_order'])) $r['sort_order'] = 'asc'; 240 if (!isset($r['file'])) $r['file'] = ''; 241 if (!isset($r['list'])) $r['list'] = true; 242 if (!isset($r['optiondates'])) $r['optiondates'] = 0; 243 if (!isset($r['optioncount'])) $r['optioncount'] = 0; 244 if (!isset($r['hide_empty'])) $r['hide_empty'] = 1; 245 if (!isset($r['use_desc_for_title'])) $r['use_desc_for_title'] = 1; 246 if (!isset($r['children'])) $r['children'] = true; 247 if (!isset($r['child_of'])) $r['child_of'] = 0; 248 if (!isset($r['categories'])) $r['categories'] = 0; 249 if (!isset($r['recurse'])) $r['recurse'] = 0; 248 250 list_cats($r['optionall'], $r['all'], $r['sort_column'], $r['sort_order'], $r['file'], 249 251 $r['list'], $r['optiondates'], $r['optioncount'], $r['hide_empty'], $r['use_desc_for_title'],
Note: See TracChangeset
for help on using the changeset viewer.