Make WordPress Core

Ticket #57380: 57380.20221223.1.patch

File 57380.20221223.1.patch, 1.1 KB (added by ramon fincken, 3 years ago)

57380.20221223.1.patch

  • src/wp-includes/taxonomy.php

     
    12291229 * The {@see 'get_terms_orderby'} filter passes the `ORDER BY` clause for the query
    12301230 * along with the $args array.
    12311231 *
    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:
    12331233 *
    1234  *     $terms = get_terms( 'post_tag', array(
     1234 *     $terms = get_terms( array(
     1235 *         'taxonomy' => 'post_tag',
    12351236 *         'hide_empty' => false,
    12361237 *     ) );
    12371238 *
    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.
    12391241 *
    1240  *     $terms = get_terms( array(
    1241  *         'taxonomy' => 'post_tag',
     1242 *     $terms = get_terms( 'post_tag', array(
    12421243 *         'hide_empty' => false,
    12431244 *     ) );
    12441245 *