WordPress.org

Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#39825 closed defect (bug) (fixed)

Documentation: Missing argument (meta_type and meta_compare) in the get_terms() function's docblock and WP_Term_Query::__construct() docblock

Reported by: 1naveengiri Owned by: SergeyBiryukov
Milestone: 4.8 Priority: normal
Severity: normal Version: 4.7.2
Component: Taxonomy Keywords: has-patch
Focuses: docs Cc:

Description (last modified by SergeyBiryukov)

The meta_type and meta_compare input argument is missing in the get_terms() function's DocBlock.

I also noticed they are missing in WP_Term_Query::__construct() DocBlock.
I also noticed there is no Document available for these two argument in
https://developer.wordpress.org/reference/functions/get_terms/

Attachments (2)

docs.patch (60.1 KB) - added by 1naveengiri 5 years ago.
These are valid relevant doc for these two arguments.
docs.2.patch (1.7 KB) - added by 1naveengiri 5 years ago.
I added docblock for these two argument in current patch.

Download all attachments as: .zip

Change History (8)

@1naveengiri
5 years ago

These are valid relevant doc for these two arguments.

@1naveengiri
5 years ago

I added docblock for these two argument in current patch.

#1 @bhargavbhandari90
5 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
5 years ago

  • Description modified (diff)
  • Milestone changed from Awaiting Review to 4.8

#3 @1naveengiri
5 years ago

  • Keywords dev-feedback added
  • Resolution set to invalid
  • Status changed from new to closed

#4 @knutsp
5 years ago

  • Keywords dev-feedback removed
  • Resolution invalid deleted
  • Status changed from closed to reopened

What was the reason to close this as invalid?

#5 @SergeyBiryukov
5 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from reopened to closed

In 40053:

Docs: Add missing meta_type and meta_compare arguments to WP_Term_Query::__construct() and get_terms() docblocks.

Props 1naveengiri.
Fixes #39825.

Note: See TracTickets for help on using tickets.