Avoid mangling the current site path variable with the search query. props greuben, fixes #16720 for the 3.1 branch.

git-svn-id: https://develop.svn.wordpress.org/branches/3.1@17497 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2011-03-02 18:35:19 +00:00
parent 92d74dbf2d
commit 92db7e88c7

View File

@ -72,7 +72,7 @@ class WP_MS_Sites_List_Table extends WP_List_Table {
$query .= " AND ( {$wpdb->blogs}.domain LIKE '$blog_s' ) ";
} else {
if ( $like_s != trim('/', $current_site->path) )
$blog_s = $current_site->path .= $like_s . $wild . '/';
$blog_s = $current_site->path . $like_s . $wild . '/';
else
$blog_s = $like_s;
$query .= " AND ( {$wpdb->blogs}.path LIKE '$blog_s' )";