From 673cab8183c03dcc39f3f6a772f41a0a88f433fc 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: http://svn.automattic.com/wordpress/trunk@5572 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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; }