Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#50545 closed defect (bug) (fixed)

Improve DocBlock description of is_archive()

Reported by: stevenlinx's profile stevenlinx Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.6 Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords: has-patch
Focuses: docs Cc:

Description

The existing description mentioned "Month, Year, Category, Author, Post Type archive…"

It can be changed to:
"An Archive is a Category, Tag, Author, Date, Custom Post Type or Custom Taxonomy based pages."

Codex:
https://codex.wordpress.org/Function_Reference/is_archive

DevHub:
https://developer.wordpress.org/reference/functions/is_archive/

Attachments (1)

50545.diff (1.0 KB) - added by stevenlinx 4 years ago.

Download all attachments as: .zip

Change History (5)

@stevenlinx
4 years ago

#1 @stevenlinx
4 years ago

  • Keywords has-patch added; needs-patch removed

#2 @SergeyBiryukov
4 years ago

  • Milestone changed from Awaiting Review to 5.6
  • Owner set to SergeyBiryukov
  • Status changed from new to reviewing

#3 @helen
4 years ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 49504:

Improve documentation for is_archive().

Props stevenlinx.
Fixes #50545.

#4 @SergeyBiryukov
4 years ago

In 49506:

Docs: Improve documentation for WP_Query::is_archive() per the documentation standards.

Follow-up to [49504].

See #50545.

Note: See TracTickets for help on using tickets.