Make WordPress Core

Ticket #3979: patch.diff

File patch.diff, 562 bytes (added by donncha, 19 years ago)
  • wp-includes/classes.php

     
    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) {