Changeset 45723 for trunk/src/wp-admin/includes/template.php
- Timestamp:
- 08/03/2019 03:34:54 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/template.php
r45667 r45723 126 126 $args['selected_cats'] = array(); 127 127 } 128 128 129 if ( is_array( $parsed_args['popular_cats'] ) ) { 129 130 $args['popular_cats'] = $parsed_args['popular_cats']; 130 131 } else { 131 132 $args['popular_cats'] = get_terms( 132 $taxonomy,133 133 array( 134 'taxonomy' => $taxonomy, 134 135 'fields' => 'ids', 135 136 'orderby' => 'count', … … 140 141 ); 141 142 } 143 142 144 if ( $descendants_and_self ) { 143 145 $categories = (array) get_terms( 144 $taxonomy,145 146 array( 147 'taxonomy' => $taxonomy, 146 148 'child_of' => $descendants_and_self, 147 149 'hierarchical' => 0, … … 152 154 array_unshift( $categories, $self ); 153 155 } else { 154 $categories = (array) get_terms( $taxonomy, array( 'get' => 'all' ) ); 156 $categories = (array) get_terms( 157 array( 158 'taxonomy' => $taxonomy, 159 'get' => 'all', 160 ) 161 ); 155 162 } 156 163 … … 208 215 209 216 $terms = get_terms( 210 $taxonomy,211 217 array( 218 'taxonomy' => $taxonomy, 212 219 'orderby' => 'count', 213 220 'order' => 'DESC', … … 267 274 268 275 $categories = get_terms( 269 'link_category',270 276 array( 277 'taxonomy' => 'link_category', 271 278 'orderby' => 'name', 272 279 'hide_empty' => 0,
Note: See TracChangeset
for help on using the changeset viewer.