Search using blog_id = blog_id not blog_id = search string . Fixes #11787 props Denis-de-Bernardy.
git-svn-id: https://develop.svn.wordpress.org/trunk@12639 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
8d663551af
commit
fc7e0f273b
@ -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
Block a user