Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#39905 closed defect (bug) (invalid)

Alternative function for get_terms not documented yet

Reported by: subrataemfluence Owned by:
Priority: normal Milestone:
Component: Taxonomy Version: 4.7.2
Severity: normal Keywords: has-screenshots
Cc: Focuses: docs

Description

Function get_terms() is showing as deprecated in 4.7.2.

https://core.trac.wordpress.org/browser/tags/4.7.2/src/wp-includes/deprecated.php#L1276 still shows get_terms as the latest alternative of get_all_category_ids.

What is the alternative function? File deprecated.php targets version 4.7.2 so it needs to be updated with the correct alternative.

Attachments (1)

Screenshot from 2017-02-17 21:27:02.png (236.7 KB ) - added by subrataemfluence 10 years ago.
Tooltip showing deprecated

Download all attachments as: .zip

Change History (3)

@subrataemfluence
10 years ago

Tooltip showing deprecated

#1 @subrataemfluence
10 years ago

  • Keywords has-screenshots added

#2 @SergeyBiryukov
10 years ago

  • Component Help/AboutTaxonomy
  • Milestone Awaiting Review
  • Resolutioninvalid
  • Status newclosed

Hi @subrataemfluence, thanks for the ticket!

get_terms() itself is not deprecated, only its second argument is: tags/4.7.2/src/wp-includes/taxonomy.php?marks=1078-1080#L1073.

Note: See TracTickets for help on using tickets.