WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/03/2019 03:34:54 AM (2 years ago)
Author:
SergeyBiryukov
Message:

Taxonomy: Fix deprecated calls to get_terms().

The taxonomy should be passed as part of $args, rather than as its own argument.

Props sgastard, mukesh27, SergeyBiryukov.
Fixes #47819.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-terms-list-table.php

    r45583 r45723  
    215215            $this->callback_args,
    216216            array(
     217                'taxonomy'   => $taxonomy,
    217218                'page'       => 1,
    218219                'number'     => 20,
     
    238239            $args['offset'] = $args['number'];
    239240        }
    240         $terms = get_terms( $taxonomy, $args );
     241
     242        $terms = get_terms( $args );
    241243
    242244        if ( empty( $terms ) || ! is_array( $terms ) ) {
Note: See TracChangeset for help on using the changeset viewer.