WordPress.org

Make WordPress Core

Changeset 4826


Ignore:
Timestamp:
01/28/2007 10:30:39 PM (14 years ago)
Author:
ryan
Message:

Discard non-scalars when building query string.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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            }
Note: See TracChangeset for help on using the changeset viewer.