Opened 9 years ago
Closed 8 years ago
#40647 closed enhancement (fixed)
Introduce `ms-site.php` and `ms-network.php` files
| Reported by: | flixos90 | Owned by: | flixos90 |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.1 |
| Component: | Networks and Sites | Version: | |
| Severity: | normal | Keywords: | has-patch ms-roadmap |
| Cc: | Focuses: | multisite |
Description
Let's introduce ms-site.php and ms-network.php files that should contain the core API functions for the site and network APIs respectively. All of them are currently dropped in ms-blogs.php, and as we're starting to introduce more functions for those APIs, the file gets more cluttered.
This ticket is a subticket for #40623.
Attachments (3)
Change History (14)
This ticket was mentioned in Slack in #core by flixos90. View the logs.
9 years ago
This ticket was mentioned in Slack in #core-multisite by jeremyfelt. View the logs.
9 years ago
#4
@
9 years ago
- Milestone Awaiting Review → Future Release
Let's do this in the same release we get the new sites C(R)UD API in (see #40364).
We need to find a good point to break as few patches as possible.
#5
@
9 years ago
- Keywords ms-roadmap added
These tickets belong to our planned roadmap (a few of them not per final decision), so flagging with a keyword for better overview.
This ticket was mentioned in Slack in #core-multisite by jeremyfelt. View the logs.
9 years ago
This ticket was mentioned in Slack in #core-multisite by flixos90. View the logs.
9 years ago
#8
@
8 years ago
- Keywords has-patch, ms-roadmap → has-patch ms-roadmap
- Milestone Future Release → 5.1
#10
@
8 years ago
40647.3.diff applies against latest trunk and accounts for new functions introduced.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This is exactly the same patch that I previously uploaded on #40623. It introduces the
ms-site.phpandms-network.phpfiles and moves the basic functions for their APIs in there. Let's continue work on it here.We discussed that briefly during office-hours yesterday, but as a reminder the question: Do we really need to load those two files from
ms-blogs.phpor can we load them fromwp-settings.php? The latter would certainly be nicer, but not sure about BC with someone loadingms-blogs.phpmanually.