Introduce a sitemeta filter for populate_network
|Reported by:||jeremyfelt||Owned by:||nacin|
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.