[wp-trac] [WordPress Trac] #40623: Investigate new file structure for Multisite functionality
WordPress Trac
noreply at wordpress.org
Mon May 1 22:14:07 UTC 2017
#40623: Investigate new file structure for Multisite functionality
--------------------------------+------------------------------
Reporter: flixos90 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Networks and Sites | Version:
Severity: normal | Resolution:
Keywords: | Focuses: multisite
--------------------------------+------------------------------
Comment (by flixos90):
[attachment:40623.diff] moves some functions from the general `ms-
blogs.php` to more specific `ms-site.php` and `ms-network.php` files
respectively. All functions follow the new naming conventions except
`clean_blog_cache()`, I moved that function because it actually belongs to
the site API (if we ever introduce a replacement, that function can be
deprecated and moved out of there).
The two files are loaded from `ms-blogs.php` to provide full BC even for
the edge-case that someone loads that file manually. If we come to the
conclusion that this is not necessary, it would probably be better to load
the two new files from `wp-settings.php` directly.
I think this change is a good first step into the right direction, which
we could easily merge without BC concerns (correct me if I'm wrong!). This
would give a better overview over the existing site and network APIs and
also provide dedicated files for enhancements such as #40364.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40623#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list