Make WordPress Core

Changeset 27076


Ignore:
Timestamp:
02/02/2014 10:08:14 PM (11 years ago)
Author:
nacin
Message:

Remove an unnecessary variable passed to wpdb::prepare() during multisite load.

props jeremyfelt.
fixes #26941.

File:
1 edited

Legend:

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

    r26120 r27076  
    194194            $current_site = $wpdb->get_row( $wpdb->prepare("SELECT * FROM $wpdb->site WHERE domain = %s AND path='/'", $domain ) );
    195195        else
    196             $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 ) );
     196            $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 ) );
    197197    }
    198198
Note: See TracChangeset for help on using the changeset viewer.