WordPress.org

Make WordPress Core

Ticket #48354: Stricter_docs_for_WP_Query__is_page().patch

File Stricter_docs_for_WP_Query__is_page().patch, 702 bytes (added by shaharia.azam, 20 months ago)

Stricter docs for WP_Query::is_page()

  • src/wp-includes/class-wp-query.php

    IDEA additional info:
    Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
    <+>UTF-8
     
    39463946         *
    39473947         * @since 3.1.0
    39483948         *
    3949          * @param int|string|array $page Optional. Page ID, title, slug, path, or array of such. Default empty.
     3949         * @param int|string|int[]|string[] $page Optional. Page ID, title, slug, path, or array of such. Default empty.
    39503950         * @return bool Whether the query is for an existing single page.
    39513951         */
    39523952        public function is_page( $page = '' ) {