Changeset 55018
- Timestamp:
- 12/27/2022 12:21:35 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/taxonomy.php
r55011 r55018 1230 1230 * along with the $args array. 1231 1231 * 1232 * Prior to 4.5.0, the first parameter of `get_terms()` was a taxonomy or list of taxonomies: 1233 * 1234 * $terms = get_terms( 'post_tag', array( 1232 * Taxonomy or an array of taxonomies should be passed via the 'taxonomy' argument 1233 * in the `$args` array: 1234 * 1235 * $terms = get_terms( array( 1236 * 'taxonomy' => 'post_tag', 1235 1237 * 'hide_empty' => false, 1236 1238 * ) ); 1237 1239 * 1238 * Since 4.5.0, taxonomies should be passed via the 'taxonomy' argument in the `$args` array: 1239 * 1240 * $terms = get_terms( array( 1241 * 'taxonomy' => 'post_tag', 1242 * 'hide_empty' => false, 1243 * ) ); 1240 * Prior to 4.5.0, taxonomy was passed as the first parameter of `get_terms()`. 1244 1241 * 1245 1242 * @since 2.3.0
Note: See TracChangeset
for help on using the changeset viewer.