WordPress.org

Make WordPress Core

Changeset 14343


Ignore:
Timestamp:
05/02/2010 09:40:31 PM (10 years ago)
Author:
wpmuguru
Message:

use correct var in r14342, see #13104

File:
1 edited

Legend:

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

    r14342 r14343  
    107107            if ( false !== $blog )
    108108                return $blog;
    109             if ( substr( $domain, 0, 4 ) == 'www.' ) {
    110                 $nowww = substr( $domain, 4 );
    111                 $blog = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->blogs WHERE domain IN (%s,%s) ORDER BY CHAR_LENGTH(domain) DESC", $nowww, $fields['domain'], $fields['path'] ) );
     109            if ( substr( $fields['domain'], 0, 4 ) == 'www.' ) {
     110                $nowww = substr( $fields['domain'], 4 );
     111                $blog = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->blogs WHERE domain IN (%s,%s) ORDER BY CHAR_LENGTH(domain) DESC", $nowww, $fields['domain'] ) );
    112112            } else {
    113113                $blog = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->blogs WHERE domain = %s", $fields['domain'] ) );
Note: See TracChangeset for help on using the changeset viewer.