fix warning in r14342, see #13104
git-svn-id: http://svn.automattic.com/wordpress/trunk@14351 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b4e14fb299
commit
6ed0c429d1
|
@ -89,8 +89,8 @@ 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 );
|
||||
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) AND path = %s ORDER BY CHAR_LENGTH(domain) DESC", $nowww, $fields['domain'], $fields['path'] ) );
|
||||
} else {
|
||||
$blog = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->blogs WHERE domain = %s AND path = %s", $fields['domain'], $fields['path'] ) );
|
||||
|
|
Loading…
Reference in New Issue