Changeset 16169
- Timestamp:
- 11/03/2010 07:26:23 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-ms-sites-list-table.php
r16167 r16169 31 31 32 32 $s = isset( $_REQUEST['s'] ) ? stripslashes( trim( $_REQUEST[ 's' ] ) ) : ''; 33 $wild = ''; 34 if ( false !== strpos($s, '*') ) { 35 $wild = '%'; 36 $s = trim($s, '*'); 37 } 38 33 39 $like_s = esc_sql( like_escape( $s ) ); 34 40 … … 54 60 WHERE site_id = '{$wpdb->siteid}' 55 61 AND {$wpdb->blogs}.blog_id = {$wpdb->registration_log}.blog_id 56 AND {$wpdb->registration_log}.IP LIKE ( '{$like_s} %' )";62 AND {$wpdb->registration_log}.IP LIKE ( '{$like_s}$wild' )"; 57 63 } else { 58 64 if ( is_subdomain_install() ) { 59 65 $blog_s = str_replace( '.' . $current_site->domain, '', $like_s ); 60 $blog_s .= '.' . $current_site->domain;66 $blog_s .= $wild . '.' . $current_site->domain; 61 67 $query .= " AND ( {$wpdb->blogs}.domain LIKE '$blog_s' "; 62 68 } else { 63 69 if ( $like_s != trim('/', $current_site->path) ) 64 $blog_s = $current_site->path .= $like_s . '/';70 $blog_s = $current_site->path .= $like_s . $wild . '/'; 65 71 else 66 72 $blog_s = $like_s;
Note: See TracChangeset
for help on using the changeset viewer.