[wp-trac] [WordPress Trac] #29411: Add multi-network helper functionality

WordPress Trac noreply at wordpress.org
Fri Jul 14 19:55:55 UTC 2017


#29411: Add multi-network helper functionality
--------------------------------+-----------------------------
 Reporter:  rmccue              |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  Future Release
Component:  Networks and Sites  |     Version:
 Severity:  normal              |  Resolution:
 Keywords:                      |     Focuses:  multisite
--------------------------------+-----------------------------
Changes (by flixos90):

 * milestone:  Awaiting Review => Future Release


Comment:

 As decided recently during multisite office-hours, we wanna have a CRUD
 API dedicated to networks as part of core in the long run.

 While multinetwork will likely always remain plugin territory in the way
 it is implemented in detail, core should provide a basic API for
 interacting with the database table, to have a solid common ground that is
 thoroughly unit-tested.

 We already have:
 * `WP_Network` and `WP_Network_Query`
 * `get_network()` and `get_networks()` (this is the 'R' of the CRUD API)

 We need to implement:
 * `wp_insert_network()`
 * `wp_update_network()`
 * `wp_delete_network()`

 These three functions should work similarly to their sites counterparts
 which we're working on in #40364. Let's not start patching this ticket
 until the related sites functions are set in stone.

 @rmccue This decision is obviously only part of what you request above.
 What are your current thoughts? Should we create a separate ticket for the
 three functions or work in here?

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


More information about the wp-trac mailing list