Ticket #57380: 57380.20221223.1.patch
| File 57380.20221223.1.patch, 1.1 KB (added by , 3 years ago) |
|---|
-
src/wp-includes/taxonomy.php
1229 1229 * The {@see 'get_terms_orderby'} filter passes the `ORDER BY` clause for the query 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:1232 * Since 4.5.0, taxonomies should be passed via the 'taxonomy' argument in the `$args` array: 1233 1233 * 1234 * $terms = get_terms( 'post_tag', array( 1234 * $terms = get_terms( array( 1235 * 'taxonomy' => 'post_tag', 1235 1236 * 'hide_empty' => false, 1236 1237 * ) ); 1237 1238 * 1238 * Since 4.5.0, taxonomies should be passed via the 'taxonomy' argument in the `$args` array: 1239 * Prior to 4.5.0, the first parameter of `get_terms()` was a taxonomy or list of taxonomies. 1240 * Please do not use this deprecated way of using `get_terms()` anymore. 1239 1241 * 1240 * $terms = get_terms( array( 1241 * 'taxonomy' => 'post_tag', 1242 * $terms = get_terms( 'post_tag', array( 1242 1243 * 'hide_empty' => false, 1243 1244 * ) ); 1244 1245 *