WordPress.org

Make WordPress Core

Changeset 14351


Ignore:
Timestamp:
05/02/2010 11:33:02 PM (11 years ago)
Author:
wpmuguru
Message:

fix warning in r14342, see #13104

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-blogs.php

    r14343 r14351  
    9090            if ( false !== $blog )
    9191                return $blog;
    92             if ( substr( $domain, 0, 4 ) == 'www.' ) {
    93                 $nowww = substr( $domain, 4 );
     92            if ( substr( $fields['domain'], 0, 4 ) == 'www.' ) {
     93                $nowww = substr( $fields['domain'], 4 );
    9494                $blog = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->blogs WHERE domain IN (%s,%s) AND path = %s ORDER BY CHAR_LENGTH(domain) DESC", $nowww, $fields['domain'], $fields['path'] ) );
    9595            } else {
Note: See TracChangeset for help on using the changeset viewer.