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.
Reported by
terrylinvia User Contributed Notes.Issue Description
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.