Opened 12 years ago
Closed 12 years ago
#25020 closed defect (bug) (fixed)
Introduce a sitemeta filter for populate_network
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 3.7 | Priority: | normal |
| Severity: | normal | Version: | 3.0 |
| Component: | Multisite | Keywords: | has-patch |
| Focuses: | Cc: |
Description
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.
Attachments (2)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Looks good. wp_parse_args() is however not needed. And again the @var statements are not really our style. :-)