[wp-trac] [WordPress Trac] #24833: Multisite site search for subdomain install with mapped domains
WordPress Trac
noreply at wordpress.org
Thu Jul 25 07:09:27 UTC 2013
#24833: Multisite site search for subdomain install with mapped domains
-------------------------+-----------------------------
Reporter: Surbma | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Multisite | Version: 3.5.2
Severity: normal | Keywords:
-------------------------+-----------------------------
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
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24833>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list