Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#47819 closed enhancement (fixed)

Use of deprecated function in ajax tag search

Reported by: sgastard's profile sgastard Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.3 Priority: normal
Severity: minor Version:
Component: Administration Keywords: has-patch needs-refresh
Focuses: Cc:


In wp-admin/includes/ajax-actions.php, the function wp_ajax_ajax_tag_search() calls get_terms() in the deprecated way

Attachments (1)

ajax-actions.php.patch (526 bytes) - added by sgastard 5 years ago.

Download all attachments as: .zip

Change History (5)

#1 @mukesh27
5 years ago

  • Keywords needs-refresh reporter-feedback 2nd-opinion added
  • Type changed from enhancement to feature request
  • Version 5.2.2 deleted

Hi @sgastard

Welcome to WordPress Trac! Thanks for the patch!

If we fix deprecated argument for get_terms then it would be a good idea to fix that deprecated argument as well form other files for consistency.

#2 @SergeyBiryukov
5 years ago

  • Keywords reporter-feedback 2nd-opinion removed
  • Milestone changed from Awaiting Review to 5.3
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing
  • Type changed from feature request to enhancement

Related: #45297

#4 @SergeyBiryukov
5 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 45723:

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.

Note: See TracTickets for help on using tickets.