From 6800fa55648b1b91a512ab2ac44e0fa421fdbc38 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: http://svn.automattic.com/wordpress/trunk@5573 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 54b635c85..345e1ba8c 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() {