Opened 13 years ago
Closed 13 years ago
#25020 closed defect (bug) (fixed)
Introduce a sitemeta filter for populate_network
| Reported by: | jeremyfelt | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.7 |
| Component: | Multisite | Version: | 3.0 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Looks good. wp_parse_args() is however not needed. And again the @var statements are not really our style. :-)