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

git-svn-id: http://svn.automattic.com/wordpress/trunk@17496 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-03-02 18:33:55 +00:00
parent 30bc33ad5a
commit 68322f81b5

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' )";