From b5d75745b01a969e2c01b93b6b7b21a76dd21755 Mon Sep 17 00:00:00 2001 From: donncha Date: Tue, 11 Jul 2006 15:38:29 +0000 Subject: Lowercase pages and blognames git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@655 7be80a69-a1ef-0310-a953-fb0f7c49ff36 --- wpmu-settings.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'wpmu-settings.php') diff --git a/wpmu-settings.php b/wpmu-settings.php index 58620ae..a1bc003 100644 --- a/wpmu-settings.php +++ b/wpmu-settings.php @@ -85,12 +85,12 @@ function is_blogname_page( $blogname ) { global $wpdb, $table_prefix; // is the request for a page of the main blog? We need to cache this information somewhere to save a request - $pages = $wpdb->get_col( "SELECT post_name FROM {$table_prefix}1_posts WHERE post_type='page'" ); + $pages = $wpdb->get_col( "SELECT LOWER(post_name) FROM {$table_prefix}1_posts WHERE post_type='page'" ); if( is_array( $pages ) == false ) return false; - if( in_array( $blogname, $pages ) ) { + if( in_array( strtolower( $blogname ), $pages ) ) { return true; } else { return false; -- cgit