Ticket #56025: 56025.diff
File 56025.diff, 493 bytes (added by , 3 years ago) |
---|
-
wp-includes/functions.php
diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 4ecad8e808..160d4521f4 100644
a b function wp_validate_boolean( $var ) { 7310 7310 return $var; 7311 7311 } 7312 7312 7313 if ( is_string( $var ) && 'false' === strtolower( $var) ) {7313 if ( is_string( $var ) && ( in_array( strtolower( $var ), array( 'false', 'off', 'no' ) ) ) ) { 7314 7314 return false; 7315 7315 }