WordPress.org

Make WordPress Core

Opened 13 months ago

Last modified 9 months ago

#40647 new enhancement

Introduce `ms-site.php` and `ms-network.php` files

Reported by: flixos90 Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Networks and Sites Keywords: has-patch, ms-roadmap
Focuses: multisite Cc:

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 (1)

40647.diff (23.8 KB) - added by flixos90 13 months ago.

Download all attachments as: .zip

Change History (8)

@flixos90
13 months ago

#1 @flixos90
13 months ago

  • Keywords has-patch added

This is exactly the same patch that I previously uploaded on #40623. It introduces the ms-site.php and ms-network.php files 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.php or can we load them from wp-settings.php? The latter would certainly be nicer, but not sure about BC with someone loading ms-blogs.php manually.

This ticket was mentioned in Slack in #core by flixos90. View the logs.


13 months ago

This ticket was mentioned in Slack in #core-multisite by jeremyfelt. View the logs.


12 months ago

#4 @flixos90
10 months ago

  • Milestone changed from Awaiting Review to 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 @flixos90
10 months 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.


10 months ago

This ticket was mentioned in Slack in #core-multisite by flixos90. View the logs.


9 months ago

Note: See TracTickets for help on using tickets.