Changeset 655

Show
Ignore:
Timestamp:
07/11/06 15:38:29 (2 years ago)
Author:
donncha
Message:

Lowercase pages and blognames

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wpmu-settings.php

    r654 r655  
    8686 
    8787        // is the request for a page of the main blog? We need to cache this information somewhere to save a request 
    88         $pages = $wpdb->get_col( "SELECT post_name FROM {$table_prefix}1_posts WHERE post_type='page'" );  
     88        $pages = $wpdb->get_col( "SELECT LOWER(post_name) FROM {$table_prefix}1_posts WHERE post_type='page'" );  
    8989 
    9090        if( is_array( $pages ) == false )  
    9191                return false; 
    9292 
    93         if( in_array( $blogname, $pages ) ) { 
     93        if( in_array( strtolower( $blogname ), $pages ) ) { 
    9494                return true; 
    9595        } else {