[wp-trac] [WordPress Trac] #33600: Add `theme_mods_{$stylesheet}` option during `populate_options()`

WordPress Trac noreply at wordpress.org
Sat Aug 29 20:05:00 UTC 2015


#33600: Add `theme_mods_{$stylesheet}` option during `populate_options()`
-------------------------+-----------------------------
 Reporter:  dlh          |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Themes       |    Version:
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 After `switch_theme()`, a `theme_mods_{$stylesheet}` option is created if
 one doesn't exist to avoid extra database queries (if I understand #14828
 correctly).

 No similar option is currently created during installation, so a fresh
 install can includes those queries if the default theme looks for the mods
 before the option is added.

 The attached patch would add the option during `populate_options()`.

 I included a unit test, although I'm not sure where the best location for
 it would be.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33600>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list