Skip to content

[DevHub] Inaccurate description of logic for is_single() #2291

@crstauf

Description

@crstauf

Reported by terrylin via User Contributed Notes.

Issue Description

The “More Information” section mentions:
It is possible for $is_page and $is_attachment to be true at the same time.

This must be a mistake. As far as I know, it is impossible for $is_page and $is_attachment to be true at the same time.

I have carefully checked the parse_query method in class-wp-query.php, and it doesn’t contain such logic.

URL of the Page with the Issue

https://developer.wordpress.org/reference/functions/is_single/#more-information

Section of Page with the issue

More Information

Why is this a problem?

If true, inaccurately represents the logic of the function.

Suggested Fix

Adjust or remove the language eto accurately represent the logic.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions