From d5816ce68b464fb1dba2cfbc8e379467aa3d6d08 Mon Sep 17 00:00:00 2001 From: rob1n Date: Mon, 28 May 2007 17:05:46 +0000 Subject: [PATCH] Turn string to upper. Props Donncha. fixes #4350 git-svn-id: https://develop.svn.wordpress.org/trunk@5572 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }