Remove an unnecessary variable passed to wpdb::prepare() during multisite load.
props jeremyfelt. fixes #26941. Built from https://develop.svn.wordpress.org/trunk@27076 git-svn-id: http://core.svn.wordpress.org/trunk@26949 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
43c7993c1a
commit
fb3985663a
|
@ -193,7 +193,7 @@ function wpmu_current_site() {
|
|||
if ( $domain == $cookie_domain )
|
||||
$current_site = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->site WHERE domain = %s AND path='/'", $domain ) );
|
||||
else
|
||||
$current_site = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->site WHERE domain IN ( %s, %s ) AND path = '/' ORDER BY CHAR_LENGTH( domain ) DESC LIMIT 1", $domain, $cookie_domain, $path ) );
|
||||
$current_site = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->site WHERE domain IN ( %s, %s ) AND path = '/' ORDER BY CHAR_LENGTH( domain ) DESC LIMIT 1", $domain, $cookie_domain ) );
|
||||
}
|
||||
|
||||
if ( $current_site ) {
|
||||
|
|
Loading…
Reference in New Issue