Ticket #3979: patch.diff

File patch.diff, 0.5 kB (added by donncha, 2 years ago)
  • wp-includes/classes.php

    old new  
    149149                        elseif (!empty($perma_query_vars[$wpvar])) 
    150150                                $this->query_vars[$wpvar] = $perma_query_vars[$wpvar]; 
    151151 
    152                         $this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar]; 
     152                        if( empty( $this->query_vars[$wpvar] ) == false ) 
     153                                $this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar]; 
    153154                } 
    154155 
    155156                foreach ($this->private_query_vars as $var) {