id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc,focuses 24833,Multisite site search for subdomain install with mapped domains,Surbma,jeremyfelt,"Site search is not working in a Multisite with subdomain install, when a sub site's domain is changed and not using the main site's domain in its own domain. It means it is not a subdomain of the main site. Mainly it affects sub sites with domain mapping. In the file: /wp-admin/includes/class-wp-ms-sites-list-table.php there is the search query, which has the main site's domain hardcoded in the query ($current_site->domain). So it needs to be changed to search for all kind of domains. I don't know much about this code, but I have found a fix and it is working, so I add it here. This code needs to be put in the /wp-admin/includes/class-wp-ms-sites-list-table.php file after the 73rd line in WP 3.5.2: {{{ $blog_s = '$wild' . $like_s . '$wild'; // fix }}} ",enhancement,closed,normal,4.6,Networks and Sites,3.5.2,normal,fixed,has-patch has-unit-tests,,multisite