WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#39948 closed defect (bug) (fixed)

is_singular inline docs summary issue with the docs parser

Reported by: grapplerulrich Owned by: SergeyBiryukov
Milestone: 4.8 Priority: normal
Severity: normal Version:
Component: Posts, Post Types Keywords:
Focuses: docs Cc:

Description

The inline docs for is_singular is not being parsed correctly as the parser stops as the first dot instead of going to the end of the line.

Is the query for an existing single post of any post type (post, attachment, page, ... )?

https://developer.wordpress.org/reference/functions/is_singular/

I expect it is easier to fix the inline documentation then to fix the parser.

A potential fix: Is the query for an existing single post of any post type (post, attachment, page, custom post types)?

Change History (3)

#1 @grapplerulrich
4 years ago

  • Summary changed from is_singular to is_singular inline docs summary issue with the docs parser

#2 @SergeyBiryukov
4 years ago

  • Milestone changed from Awaiting Review to 4.8

#3 @SergeyBiryukov
4 years ago

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

In 40103:

Docs: Update the description of is_singular() and WP_Query::is_singular() to be parsed correctly by developer.wordpress.org.

Props grapplerulrich.
Fixes #39948.

Note: See TracTickets for help on using tickets.