[wp-trac] [WordPress Trac] #39537: When switching themes, set previous theme mods as autoload = no

WordPress Trac noreply at wordpress.org
Tue Jan 10 11:20:42 UTC 2017


#39537: When switching themes, set previous theme mods as autoload = no
-------------------------+-----------------------------
 Reporter:  igmoweb      |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Themes       |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:  performance  |
-------------------------+-----------------------------
 When a theme is switched, previous theme mods are yet autoloaded. This
 will start filling up the autoloaded options list if you change of Theme
 often. Normally this won't happen often but we had an issue like this in a
 big multisite where a user had many sites and he switched themes many
 times and PHP got out of memory when loading the user in wp-admin.

 In any case, it's a good idea to:
 - Set autoload = no for previous theme mods
 - Set autoload = yes again for the new switched theme

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


More information about the wp-trac mailing list