Changeset 5642 for trunk/wp-includes/category.php
- Timestamp:
- 06/03/2007 05:28:27 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category.php
r5599 r5642 13 13 14 14 function &get_categories($args = '') { 15 // TODO Add back compat fields into each object. 16 // Set taxonomy to link_category if type=link 17 return get_terms('category', $args); 15 $defaults = array('type' => 'category'); 16 $args = wp_parse_args($args, $defaults); 17 18 $taxonomy = 'category'; 19 if ( 'link' == $args['type'] ) 20 $taxonomy = 'link_category'; 21 return get_terms($taxonomy, $args); 18 22 } 19 23
Note: See TracChangeset
for help on using the changeset viewer.