diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 1a505eb2ad..54b635c85e 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -754,7 +754,7 @@ function get_num_queries() { } function bool_from_yn($yn) { - if ($yn == 'Y') return 1; + if (strtoupper( $yn ) == 'Y') return 1; return 0; }