mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
Don't cast to string if empty. Props donncha. fixes #3979 for 2.0
git-svn-id: https://develop.svn.wordpress.org/branches/2.0@5053 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3e3d265621
commit
a6618fb828
@ -1617,6 +1617,9 @@ class WP {
|
||||
$this->query_vars[$wpvar] = $query_vars[$wpvar];
|
||||
else
|
||||
$this->query_vars[$wpvar] = '';
|
||||
|
||||
if ( !empty( $this->query_vars[$wpvar] ) )
|
||||
$this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar];
|
||||
}
|
||||
|
||||
if ( isset($error) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user