Make WordPress Core

Ticket #16802: 16802.patch

File 16802.patch, 641 bytes (added by johnbillion, 14 years ago)
  • wp-includes/query.php

     
    32543254         *
    32553255         * @since 3.1.0
    32563256         *
    3257          * @param mixed $page Page ID, title, slug, or array of such.
     3257         * @param mixed $page Page ID, title, slug, path, or array of such.
    32583258         * @return bool
    32593259         */
    32603260        function is_page( $page = '' ) {
     
    32743274                        return true;
    32753275                else if ( in_array( $page_obj->post_name, $page ) )
    32763276                        return true;
     3277                else if ( in_array( get_page_uri( $page_obj ), $page ) )
     3278                        return true;
    32773279
    32783280                return false;
    32793281        }