mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-10 21:00:59 +01:00
Don't cast to string if empty. Props donncha. fixes #3979 for 2.1
git-svn-id: http://svn.automattic.com/wordpress/branches/2.1@5052 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8fe6255f89
commit
1e57f40061
@ -149,7 +149,8 @@ class WP {
|
||||
elseif (!empty($perma_query_vars[$wpvar]))
|
||||
$this->query_vars[$wpvar] = $perma_query_vars[$wpvar];
|
||||
|
||||
$this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar];
|
||||
if ( !empty( $this->query_vars[$wpvar] ) )
|
||||
$this->query_vars[$wpvar] = (string) $this->query_vars[$wpvar];
|
||||
}
|
||||
|
||||
foreach ($this->private_query_vars as $var) {
|
||||
|
Loading…
Reference in New Issue
Block a user