Changeset 12694 for trunk/wp-includes/category.php
- Timestamp:
- 01/11/2010 07:27:44 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/category.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/category.php
r12515 r12694 38 38 */ 39 39 function &get_categories( $args = '' ) { 40 $defaults = array( 't ype' => 'category' );40 $defaults = array( 'taxonomy' => 'category' ); 41 41 $args = wp_parse_args( $args, $defaults ); 42 42 43 $taxonomy = apply_filters( 'get_categories_taxonomy', 'category', $args ); 44 if ( 'link' == $args['type'] ) 45 $taxonomy = 'link_category'; 43 $taxonomy = apply_filters( 'get_categories_taxonomy', $args['taxonomy'], $args ); 44 45 if ( isset($args['type']) && 'link' == $args['type'] ) //Back compat 46 $taxonomy = $args['taxonomy'] = 'link_category'; 47 46 48 $categories = (array) get_terms( $taxonomy, $args ); 47 49
Note: See TracChangeset
for help on using the changeset viewer.