[wp-trac] [WordPress Trac] #59975: Set autoload to 'no' for previously activated themes

WordPress Trac noreply at wordpress.org
Tue Nov 28 05:03:43 UTC 2023


#59975: Set autoload to 'no' for previously activated themes
--------------------------+------------------------------------------
 Reporter:  mukesh27      |      Owner:  mukesh27
     Type:  defect (bug)  |     Status:  assigned
 Priority:  normal        |  Milestone:  6.5
Component:  Themes        |    Version:
 Severity:  normal        |   Keywords:  needs-patch needs-unit-tests
  Focuses:  performance   |
--------------------------+------------------------------------------
 By default, WordPress sets the `theme_mods_*` options to autoload when a
 theme is activated. A previous ticket, #39537, successfully addressed this
 by ensuring that when a different theme is activated, the previous theme's
 autoload settings are removed.

 However, we've identified an additional issue. When users activate
 multiple themes over time, all corresponding options remain set to
 autoload. Although #39537 updated autoload settings for old and new
 themes, there are still lingering autoload settings for other previously
 activated themes.

 As per the discussion in https://github.com/WordPress/wordpress-
 develop/pull/5706#issuecomment-1827606503, it's proposed that an upgrade
 routine should be implemented to remove autoload for these themes'
 options.

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


More information about the wp-trac mailing list