Opened 13 years ago
Closed 10 years ago
#25761 closed defect (bug) (maybelater)
Crazy amounts of queries are run in wp-admin/install.php?step=2
| Reported by: | Denis-de-Bernardy | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Database | Version: | 3.7 |
| Severity: | normal | Keywords: | needs-patch |
| Cc: | Focuses: |
Description
To reproduce, create a wp-content/install.php file, and add the following:
add_filter('query', function($query) {
var_dump($query);
return $query;
});
… then create a new site accordingly.
It's admittedly minor since, at the end of the day, it works. But surely there's a means to reduce duplication somewhat in there.
Change History (4)
#2
@
13 years ago
the roles thing is ridiculous, I attacked that here:
http://core.trac.wordpress.org/attachment/ticket/20152/20152.diff
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Confirmed 507 queries.
113 of them are from
add_role()andWP_Role::add_cap()calls when adding initial roles:tags/3.7.1/src/wp-admin/includes/schema.php#L585
71 are from
delete_option()when deleting unused options:tags/3.7.1/src/wp-admin/includes/schema.php#L526
The rest are creating tables, populating default options, user meta, etc.