Ticket #3891: cast_qvs_to_string.diff

File cast_qvs_to_string.diff, 487 bytes (added by markjaquith, 5 years ago)

cast to string

  • wp-includes/classes.php

     
    148148                                $this->query_vars[$wpvar] = $_GET[$wpvar]; 
    149149                        elseif (!empty($perma_query_vars[$wpvar])) 
    150150                                $this->query_vars[$wpvar] = $perma_query_vars[$wpvar]; 
     151 
     152                        $this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar]; 
    151153                } 
    152154 
    153155                foreach ($this->private_query_vars as $var) {