Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#39905 closed defect (bug) (invalid)

Alternative function for get_terms not documented yet

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


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 3 years ago.
Tooltip showing deprecated

Download all attachments as: .zip

Change History (3)

3 years ago

Tooltip showing deprecated

#1 @subrataemfluence
3 years ago

  • Keywords has-screenshots added

#2 @SergeyBiryukov
3 years ago

  • Component changed from Help/About to Taxonomy
  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

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.