WordPress.org

Make WordPress Core

Changeset 15793


Ignore:
Timestamp:
10/13/2010 03:21:19 PM (8 years ago)
Author:
scribu
Message:

Don't attempt to convert objects to strings in WP->parse_request(). Fixes #14330

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/classes.php

    r15770 r15793  
    277277                    $this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar];
    278278                } else {
    279                     foreach ( $this->query_vars[$wpvar] as $vkey => $v )
    280                         $this->query_vars[$wpvar][$vkey] = (string) $v;
     279                    foreach ( $this->query_vars[$wpvar] as $vkey => $v ) {
     280                        if ( !is_object( $v ) ) {
     281                            $this->query_vars[$wpvar][$vkey] = (string) $v;
     282                        }
     283                    }
    281284                }
    282285
Note: See TracChangeset for help on using the changeset viewer.