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() {