Ignore case when checking string 'false' in `wp_validate_boolean()`.
Props TobiasBg, kitchin. Fixes #30238. Built from https://develop.svn.wordpress.org/trunk@30207 git-svn-id: http://core.svn.wordpress.org/trunk@30207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
99c5817822
commit
89526ca7f1
|
@ -4740,7 +4740,9 @@ function reset_mbstring_encoding() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Alternative to filter_var( $var, FILTER_VALIDATE_BOOLEAN ).
|
* Filter/validate a variable as a boolean.
|
||||||
|
*
|
||||||
|
* Alternative to `filter_var( $var, FILTER_VALIDATE_BOOLEAN )`.
|
||||||
*
|
*
|
||||||
* @since 4.0.0
|
* @since 4.0.0
|
||||||
*
|
*
|
||||||
|
@ -4752,7 +4754,7 @@ function wp_validate_boolean( $var ) {
|
||||||
return $var;
|
return $var;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( 'false' === $var ) {
|
if ( is_string( $var ) && 'false' === strtolower( $var ) ) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.1-alpha-30206';
|
$wp_version = '4.1-alpha-30207';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
|
Loading…
Reference in New Issue