#48354 closed enhancement (fixed)
Stricter docs for is_page() and WP_Query::is_page()
Reported by: | marekdedic | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.4 | Priority: | normal |
Severity: | minor | Version: | 5.2 |
Component: | Query | Keywords: | good-first-bug has-patch |
Focuses: | docs | Cc: |
Description
Both could have the $page
parameter narrowed from int|string|array
to int|string|int[]|string[]
.
Attachments (2)
Change History (14)
#5
follow-up:
↓ 9
@
5 years ago
Just noting the same should also be done for these functions:
is_post_type_archive()
is_attachment()
is_author()
is_category()
is_tag()
is_tax()
is_single()
is_singular()
and their WP_Query
counterpart methods.
This ticket was mentioned in Slack in #core by david.baumwald. View the logs.
5 years ago
#7
@
5 years ago
- Milestone changed from 5.4 to Future Release
With 5.4 Beta 1 approaching and this ticket needing more work, this is being moved to Future Release
. If any maintainer or committer feels this can be resolved in time, or wishes to assume ownership during a specific cycle, feel free to update the milestone.
#8
@
5 years ago
- Milestone changed from Future Release to 5.5
- Owner set to SergeyBiryukov
- Status changed from new to reviewing
Note: See
TracTickets for help on using
tickets.
Stricter docs for WP_Query::is_page()