Make WordPress Core

Changeset 4753


Ignore:
Timestamp:
01/16/2007 07:05:01 PM (19 years ago)
Author:
ryan
Message:

Discard non-scalars when building query string.

File:
1 edited

Legend:

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

    r4723 r4753  
    225225            if ( '' != $this->query_vars[$wpvar] ) {
    226226                $this->query_string .= (strlen($this->query_string) < 1) ? '' : '&';
     227                if ( !is_scalar($this->query_vars[$wpvar]) ) // Discard non-scalars.
     228                    continue;
    227229                $this->query_string .= $wpvar . '=' . rawurlencode($this->query_vars[$wpvar]);
    228230            }
Note: See TracChangeset for help on using the changeset viewer.