Make WordPress Core

Ticket #35902: fix-35902.diff

File fix-35902.diff, 372 bytes (added by mikejolley, 10 years ago)

Fix for 35902

  • wp-includes/query.php

    diff --git wp-includes/query.php wp-includes/query.php
    index 053f4e9..8ab5f32 100644
    class WP_Query { 
    45024502
    45034503                $page_obj = $this->get_queried_object();
    45044504
    4505                 $page = (array) $page;
     4505                $page = array_map( 'strval', (array) $page );
    45064506
    45074507                if ( in_array( (string) $page_obj->ID, $page ) ) {
    45084508                        return true;