Make WordPress Core

Opened 11 years ago

Closed 9 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's profile Denis-de-Bernardy Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.7
Component: Database Keywords: needs-patch
Focuses: Cc:

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)

#1 @SergeyBiryukov
11 years ago

Confirmed 507 queries.

113 of them are from add_role() and WP_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.

#3 @chriscct7
9 years ago

  • Keywords needs-patch added
  • Severity changed from minor to normal

#4 @pento
9 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed

Not much traction going on here. Anyone is welcome to re-open it if they feel like tackling it.

Note: See TracTickets for help on using tickets.