Make WordPress Core

Opened 8 years ago

Closed 8 years ago

Last modified 8 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's profile 1naveengiri Owned by: sergeybiryukov's profile 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 8 years ago.
These are valid relevant doc for these two arguments.
docs.2.patch (1.7 KB) - added by 1naveengiri 8 years ago.
I added docblock for these two argument in current patch.

Download all attachments as: .zip

Change History (8)

@1naveengiri
8 years ago

These are valid relevant doc for these two arguments.

@1naveengiri
8 years ago

I added docblock for these two argument in current patch.

#1 @bhargavbhandari90
8 years ago

  • Keywords has-patch added

#2 @SergeyBiryukov
8 years ago

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

#3 @1naveengiri
8 years ago

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

#4 @knutsp
8 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
8 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.