Search using blog_id = blog_id not blog_id = search string . Fixes #11787 props Denis-de-Bernardy.
git-svn-id: http://svn.automattic.com/wordpress/trunk@12639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d4a604aaad
commit
f1e8a2107a
|
@ -317,7 +317,7 @@ switch( $_GET['action'] ) {
|
|||
if( isset($_GET['blog_name']) ) {
|
||||
$query .= " AND ( {$wpdb->blogs}.domain LIKE '%{$s}%' OR {$wpdb->blogs}.path LIKE '%{$s}%' ) ";
|
||||
} elseif( isset($_GET['blog_id']) ) {
|
||||
$query .= " AND blog_id = '".intval($_GET['s'])."' ";
|
||||
$query .= " AND blog_id = '". absint( $_GET['blog_id'] )."' ";
|
||||
} elseif( isset($_GET['blog_ip']) ) {
|
||||
$query = "SELECT *
|
||||
FROM {$wpdb->blogs}, {$wpdb->registration_log}
|
||||
|
|
Loading…
Reference in New Issue