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-includes/widgets/class-wp-widget-links.php

    r45590 r45723  
    138138            )
    139139        );
    140         $link_cats = get_terms( 'link_category' );
     140        $link_cats = get_terms( array( 'taxonomy' => 'link_category' ) );
    141141        $limit     = intval( $instance['limit'] );
    142142        if ( ! $limit ) {
Note: See TracChangeset for help on using the changeset viewer.