From e2f361cea4fc4a601a197591970ce6759beb5c66 Mon Sep 17 00:00:00 2001 From: wpmuguru Date: Sun, 2 May 2010 21:40:31 +0000 Subject: [PATCH] use correct var in r14342, see #13104 git-svn-id: http://svn.automattic.com/wordpress/trunk@14343 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/ms-blogs.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/ms-blogs.php b/wp-includes/ms-blogs.php index a34bddddc6..aca91a2bc0 100644 --- a/wp-includes/ms-blogs.php +++ b/wp-includes/ms-blogs.php @@ -106,9 +106,9 @@ function get_blog_details( $fields, $get_all = true ) { $blog = wp_cache_get($key, 'blog-lookup'); if ( false !== $blog ) return $blog; - if ( substr( $domain, 0, 4 ) == 'www.' ) { - $nowww = substr( $domain, 4 ); - $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'] ) ); + if ( substr( $fields['domain'], 0, 4 ) == 'www.' ) { + $nowww = substr( $fields['domain'], 4 ); + $blog = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->blogs WHERE domain IN (%s,%s) ORDER BY CHAR_LENGTH(domain) DESC", $nowww, $fields['domain'] ) ); } else { $blog = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->blogs WHERE domain = %s", $fields['domain'] ) ); }