[wp-trac] [WordPress Trac] #40180: Introduce `get_site_by()` function for multisite
WordPress Trac
noreply at wordpress.org
Thu Sep 28 18:40:08 UTC 2017
#40180: Introduce `get_site_by()` function for multisite
-------------------------------------------------+-------------------------
Reporter: flixos90 | Owner: flixos90
Type: enhancement | Status: assigned
Priority: normal | Milestone: 4.9
Component: Networks and Sites | Version:
Severity: normal | Resolution:
Keywords: has-patch dev-feedback has-unit- | Focuses: multisite
tests ms-roadmap needs-dev-note |
-------------------------------------------------+-------------------------
Comment (by flixos90):
In addition to improving `get_blog_details()` (see #40228),
`get_site_by()` can also be leveraged in the following functions:
* `get_id_from_blogname()`
* `get_blog_id_from_url()` (this will also get rid of the `blog-id-cache`
cache group)
* `domain_exists()`
These can be dealt with in separate tickets post-merge.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40180#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list