WordPress.org

Make WordPress Core

Opened 5 months ago

Last modified 3 weeks ago

#41333 assigned enhancement

Implement `wp_install_site()` and `wp_uninstall_site()`

Reported by: flixos90 Owned by: flixos90
Milestone: 5.0 Priority: normal
Severity: normal Version:
Component: Networks and Sites Keywords: 2nd-opinion ms-roadmap
Focuses: multisite Cc:

Description

As summarized in https://core.trac.wordpress.org/ticket/40364#comment:14, we'd like to have solid functions for installing a site in a multisite network as well as uninstalling it.

These functions should only take care of the "site-level" part of things, like:

  • creating/dropping database tables
  • populating options
  • setting up initial content

The idea is to only be required to call wp_insert_site() and then wp_install_site() to get a new site set up.

Before we start working on the two functions, we should discuss what exactly it needs to do. This will have to match what currently happens spread out between wpmu_create_blog() and another function it calls, install_blog(). We should aim to make this consistent and also think about ways to enhance these functions and the functions they use, for example by providing filters to adjust some of these defaults.

This will be a rather comprehensive task, so it does not necessarily need to go in at a similar time as the changes from #40364. We should probably even wait to start it until those changes have been completed. This ticket should just be on the horizon for now, I'd say.

Change History (8)

#1 @flixos90
5 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 flixos90. View the logs.


3 months ago

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


3 months ago

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


3 months ago

#5 @flixos90
3 months ago

  • Keywords early added
  • Owner set to flixos90
  • Status changed from new to assigned

This should be a 5.0 priority, together with #40364.

#6 @flixos90
2 months ago

  • Keywords early removed
  • Milestone changed from Future Release to 5.0

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


6 weeks ago

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


3 weeks ago

Note: See TracTickets for help on using tickets.