From 5b7256e644d4e3573f08f14c9833b824ae81d27f Mon Sep 17 00:00:00 2001 From: rob1n Date: Mon, 28 May 2007 17:11:42 +0000 Subject: [PATCH] Actually, this makes more sense. git-svn-id: https://develop.svn.wordpress.org/trunk@5573 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 54b635c85e..345e1ba8c6 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -753,9 +753,8 @@ function get_num_queries() { return $wpdb->num_queries; } -function bool_from_yn($yn) { - if (strtoupper( $yn ) == 'Y') return 1; - return 0; +function bool_from_yn( $yn ) { + return ( strtolower( $yn ) == 'y' ); } function do_feed() {