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:
westi 2010-01-07 07:58:04 +00:00
parent d4a604aaad
commit f1e8a2107a
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ switch( $_GET['action'] ) {
if( isset($_GET['blog_name']) ) { if( isset($_GET['blog_name']) ) {
$query .= " AND ( {$wpdb->blogs}.domain LIKE '%{$s}%' OR {$wpdb->blogs}.path LIKE '%{$s}%' ) "; $query .= " AND ( {$wpdb->blogs}.domain LIKE '%{$s}%' OR {$wpdb->blogs}.path LIKE '%{$s}%' ) ";
} elseif( isset($_GET['blog_id']) ) { } 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']) ) { } elseif( isset($_GET['blog_ip']) ) {
$query = "SELECT * $query = "SELECT *
FROM {$wpdb->blogs}, {$wpdb->registration_log} FROM {$wpdb->blogs}, {$wpdb->registration_log}