Make WordPress Core

Opened 10 years ago

Closed 10 years ago

#39948 closed defect (bug) (fixed)

is_singular inline docs summary issue with the docs parser

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

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
10 years ago

  • Summary is_singular → is_singular inline docs summary issue with the docs parser

#2 @SergeyBiryukov
10 years ago

  • Milestone Awaiting Review → 4.8

#3 @SergeyBiryukov
10 years ago

  • Owner set to SergeyBiryukov
  • Resolution → fixed
  • Status new → 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.