Changeset 4826

Show
Ignore:
Timestamp:
01/28/07 22:30:39 (1 year ago)
Author:
ryan
Message:

Discard non-scalars when building query string.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.0/wp-includes/classes.php

    r4715 r4826  
    16641664            if (isset($this->query_vars[$wpvar]) && '' != $this->query_vars[$wpvar]) { 
    16651665                $this->query_string .= (strlen($this->query_string) < 1) ? '' : '&'; 
     1666                if ( !is_scalar($this->query_vars[$wpvar]) ) // Discard non-scalars. 
     1667                    continue; 
    16661668                $this->query_string .= $wpvar . '=' . rawurlencode($this->query_vars[$wpvar]); 
    16671669            }