Make WordPress Core

Ticket #37077: 37077.diff

File 37077.diff, 616 bytes (added by chadschulz, 7 years ago)

Patch 1

  • class-wp.php

     
    524524                foreach ( (array) array_keys($this->query_vars) as $wpvar) {
    525525                        if ( '' != $this->query_vars[$wpvar] ) {
    526526                                $this->query_string .= (strlen($this->query_string) < 1) ? '' : '&';
    527                                 if ( !is_scalar($this->query_vars[$wpvar]) ) // Discard non-scalars.
     527                                if ( !is_string($this->query_vars[$wpvar]) ) // Discard non-strings.
    528528                                        continue;
    529529                                $this->query_string .= $wpvar . '=' . rawurlencode($this->query_vars[$wpvar]);
    530530                        }