WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #19291, comment 4


Ignore:
Timestamp:
11/18/11 16:59:49 (2 years ago)
Author:
azaozz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #19291, comment 4

    initial v1  
    55 
    66If the user removes all widgets from all sidebars there will be no more widgets instances to match the old position settings when restoring an old theme's sidebars (the newly added widgets will be different instances with different settings). In that case IMHO we should be adding all of the newly added widgets to Inactive Widgets. 
     7 
     8Apparently it may get even messier if the user reloads the page after removing all widgets from all sidebars. Then the newly added widgets would most likely have the same instance_IDs as the old/removed widgets but probably different settings and different positions. Restoring an old theme's sidebars in that case would match some/all of the newly added widgets and put them where the old instances used to be.