WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/03/2019 03:34:54 AM (11 months 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-includes/bookmark-template.php

    r45667 r45723  
    238238    if ( $parsed_args['categorize'] ) {
    239239        $cats = get_terms(
    240             'link_category',
    241240            array(
     241                'taxonomy'     => 'link_category',
    242242                'name__like'   => $parsed_args['category_name'],
    243243                'include'      => $parsed_args['category'],
Note: See TracChangeset for help on using the changeset viewer.