Make WordPress Core

Opened 8 years ago

Closed 8 years ago

#39948 closed defect (bug) (fixed)

is_singular inline docs summary issue with the docs parser

Reported by: grapplerulrich's profile grapplerulrich Owned by: sergeybiryukov's profile 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
8 years ago

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

#2 @SergeyBiryukov
8 years ago

  • Milestone changed from Awaiting Review to 4.8

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