[wp-trac] [WordPress Trac] #40364: Improve site creation in multisite

WordPress Trac noreply at wordpress.org
Tue May 22 17:40:23 UTC 2018


#40364: Improve site creation in multisite
-------------------------------------------------+------------------------
 Reporter:  jeremyfelt                           |       Owner:  flixos90
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.0
Component:  Networks and Sites                   |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  ms-roadmap has-patch has-unit-tests  |     Focuses:  multisite
-------------------------------------------------+------------------------

Comment (by mnelson4):

 In today's discussion @spacedmonkey (correct me if I'm wrong!) was pointed
 out there will be multiple ways to create a site (via WP CLI, REST API,
 admin page, signup form, etc) so it would be nice if each of those
 functions didn't need to have repeated logic. So as clarification, each of
 those different controller-type codes should use `wp_validate_site_data()`
 and if the data is considered valid, use the soon-to-exist
 `wp_install_site()` (which, internally, will use `wp_insert_site()` etc)
 but for now they'll use

 What would be a use-case for using `wp_insert_site()` directly?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/40364#comment:45>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list