Opened 13 years ago
Closed 12 years ago
#14828 closed enhancement (fixed)
Database query for non-existent mods_themename option
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | normal | Version: | 3.1 |
Component: | Performance | Keywords: | needs-refresh commit |
Focuses: | Cc: |
Description
I have noticed this in Twenty Ten and in a couple of other themes, but I imagine it must be the same for any theme for which the mods_themename option applies:
Unless you have visited one of the Menus, Background, etc. screens, and have modified something there, the mods_themename option is not added to the DB. As a result, WordPress does not find it in the autoloaded set and has to query the DB.
Attachments (1)
Change History (12)
#3
@
12 years ago
- Keywords needs-patch added
Can we try to resolve this by freeze (a few days from now)? Will also ping Ian Stewart and see if he can weigh in.
#5
@
12 years ago
- Keywords has-patch added; needs-patch removed
We had decided to avoid messing with switch_theme() in #15048, but to avoid the extra query, here's an attempt.
#8
@
12 years ago
- Milestone changed from 3.1 to Future Release
This is going to do an add_option on a front-page load.
We try and avoid those.
Moving out of 3.1 to Future Release
Let's try to add it when a theme gets activated.