diff --git src/wp-includes/category.php src/wp-includes/category.php
index 89e7de800e..f5a09138ae 100644
|
|
|
9 | 9 | /** |
10 | 10 | * Retrieve list of category objects. |
11 | 11 | * |
12 | | * If you change the type to 'link' in the arguments, then the link categories |
13 | | * will be returned instead. Also all categories will be updated to be backward |
| 12 | * If you set the 'taxonomy' argument to 'link_category', the link categories |
| 13 | * will be returned instead. Also, all categories will be updated to be backward |
14 | 14 | * compatible with pre-2.3 plugins and themes. |
15 | 15 | * |
16 | 16 | * @since 2.1.0 |
… |
… |
|
19 | 19 | * @param string|array $args { |
20 | 20 | * Optional. Arguments to retrieve categories. See get_terms() for additional options. |
21 | 21 | * |
22 | | * @type string $taxonomy Taxonomy to retrieve terms for. In this case, default 'category'. |
| 22 | * @type string $taxonomy Taxonomy to retrieve terms for. In this case, defaults to 'category'. |
23 | 23 | * } |
24 | | * @return array List of categories. |
| 24 | * @return array List of category objects. |
25 | 25 | */ |
26 | 26 | function get_categories( $args = '' ) { |
27 | 27 | $defaults = array( 'taxonomy' => 'category' ); |