Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#47819 closed enhancement (fixed)

Use of deprecated function in ajax tag search

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

Description

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 7 years ago.

Download all attachments as: .zip

Change History (5)

#1 @mukesh27
7 years ago

  • Keywords needs-refresh reporter-feedback 2nd-opinion added
  • Type enhancementfeature request
  • Version 5.2.2

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
7 years ago

  • Keywords reporter-feedback 2nd-opinion removed
  • Milestone Awaiting Review5.3
  • Owner set to SergeyBiryukov
  • Status newreviewing
  • Type feature requestenhancement

Related: #45297

#4 @SergeyBiryukov
7 years ago

  • Resolutionfixed
  • Status reviewingclosed

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.