[wp-trac] [WordPress Trac] #24833: Multisite site search for subdomain install with mapped domains
WordPress Trac
noreply at wordpress.org
Tue May 26 05:37:48 UTC 2015
#24833: Multisite site search for subdomain install with mapped domains
--------------------------------+------------------------
Reporter: Surbma | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.3
Component: Networks and Sites | Version: 3.5.2
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: multisite
--------------------------------+------------------------
Changes (by jeremyfelt):
* keywords: => needs-patch
* milestone: Awaiting Review => 4.3
Comment:
The current search is built with this:
{{{
$blog_s = str_replace( '.' . $current_site->domain, '', $s );
$blog_s = $wpdb->esc_like( $blog_s ) . $wild . $wpdb->esc_like( '.' .
$current_site->domain );
$query .= $wpdb->prepare( " AND ( {$wpdb->blogs}.domain LIKE %s ) ",
$blog_s );
}}}
With the improvements we're working toward in #22383 and #31240, this
should be updated to search all paths/domains in a subdomain
configuration. See also #31148, which should become `WP_Site_Query`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24833#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list