[wp-trac] [WordPress Trac] #35791: WP_Site_Query class
WordPress Trac
noreply at wordpress.org
Wed May 11 21:44:36 UTC 2016
#35791: WP_Site_Query class
-------------------------------------------------+-------------------------
Reporter: spacedmonkey | Owner: jeremyfelt
Type: task (blessed) | Status: reviewing
Priority: normal | Milestone: 4.6
Component: Networks and Sites | Version: 4.4
Severity: normal | Resolution:
Keywords: has-patch needs-testing has-unit- | Focuses: multisite
tests |
-------------------------------------------------+-------------------------
Comment (by flixos90):
Replying to [comment:41 jeremyfelt]:
> This may be a future improvement, but it would be cool if we could pass
`wordpress.org/foo/` to `search` and have it split the domain and path
into 2 search parts.
I added this functionality in [attachment:35791-class.6.patch] since I
agree that it would be very useful and it wasn't too hard to implement.
This is a special case of search which is only run if the search string
contains a `/` and the first `/` is not leading (in that case it would
definitely be only a path). See the `get_search_sql()` method for the
implementation. I also added a unit test for this functionality.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35791#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list