WordPress.org

Make WordPress Core

Opened 3 months ago

Last modified 3 months ago

#48354 new enhancement

Stricter docs for is_page() and WP_Query::is_page()

Reported by: marekdedic Owned by:
Milestone: 5.4 Priority: normal
Severity: minor Version: 5.2
Component: Query Keywords: good-first-bug has-patch
Focuses: docs Cc:
PR Number:

Description

Both could have the $page parameter narrowed from int|string|array to int|string|int[]|string[].

Attachments (2)

Stricter_docs_for_WP_Query__is_page().patch (702 bytes) - added by shaharia.azam 3 months ago.
Stricter docs for WP_Query::is_page()
48354.diff (612 bytes) - added by shaampk1 3 months ago.

Download all attachments as: .zip

Change History (6)

#1 @johnbillion
3 months ago

  • Keywords needs-patch good-first-bug added

#2 @desrosj
3 months ago

  • Milestone changed from Awaiting Review to 5.4

#3 @SergeyBiryukov
3 months ago

  • Component changed from General to Query

@shaharia.azam
3 months ago

Stricter docs for WP_Query::is_page()

#4 @shaampk1
3 months ago

  • Keywords has-patch added; needs-patch removed

@shaampk1
3 months ago

Note: See TracTickets for help on using tickets.