Changeset 5053

Show
Ignore:
Timestamp:
03/16/07 22:05:15 (1 year ago)
Author:
ryan
Message:

Don't cast to string if empty. Props donncha. fixes #3979 for 2.0

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.0/wp-includes/classes.php

    r4839 r5053  
    16181618            else 
    16191619                $this->query_vars[$wpvar] = ''; 
     1620 
     1621            if ( !empty( $this->query_vars[$wpvar] ) ) 
     1622                $this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar]; 
    16201623        } 
    16211624