[wp-trac] [WordPress Trac] #25020: Introduce a sitemeta filter for populate_network

WordPress Trac noreply at wordpress.org
Mon Aug 12 22:22:10 UTC 2013


#25020: Introduce a sitemeta filter for populate_network
--------------------------+-----------------------------
 Reporter:  jeremyfelt    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Multisite     |    Version:  3.0
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------------
 `populate_network()` can be used by a plugin to help create new networks
 in a multisite environment if `wp-admin/includes/schema.php` is loaded in
 as needed. As it stands now, much of the information added to the database
 by `populate_network()` is hard coded and cannot be modified as networks
 are created through other sources.

 The attached patch adds a filter on the `$sitemeta` array to allow a
 plugin to modify network defaults before they are added to the DB. Some
 cleanup is also done on the formatting of the original array.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/25020>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list