Ticket #7427: category.php.diff
| File category.php.diff, 518 bytes (added by Malaiac, 4 years ago) |
|---|
-
wp-includes/category.php
40 40 $defaults = array( 'type' => 'category' ); 41 41 $args = wp_parse_args( $args, $defaults ); 42 42 43 $taxonomy = 'category';43 $taxonomy = apply_filters('get_categories_taxonomy','category',$args); 44 44 if ( 'link' == $args['type'] ) 45 45 $taxonomy = 'link_category'; 46 46 $categories = (array) get_terms( $taxonomy, $args );
