WordPress.org

Make WordPress Core

Opened 5 months ago

Closed 3 weeks ago

Last modified 3 weeks ago

#50545 closed defect (bug) (fixed)

Improve DocBlock description of is_archive()

Reported by: stevenlinx Owned by: 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 5 months ago.

Download all attachments as: .zip

Change History (5)

@stevenlinx
5 months ago

#1 @stevenlinx
5 months ago

  • Keywords has-patch added; needs-patch removed

#2 @SergeyBiryukov
4 months ago

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

#3 @helen
3 weeks ago

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

In 49504:

Improve documentation for is_archive().

Props stevenlinx.
Fixes #50545.

#4 @SergeyBiryukov
3 weeks 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.