#9770 closed defect (bug) (invalid)
dynamic_sidebar() should not save widgets on theme preview
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | minor | Version: | 2.8 |
Component: | Widgets | Keywords: | has-patch dev-feedback |
Focuses: | Cc: |
Description
when looking a theme that adds widgets and sidebars, dynamic_sidebar() calls currently save the sidebars_widgets option.
this should not happen.
Attachments (1)
Change History (8)
#3
in reply to:
↑ description
@
14 years ago
Replying to Denis-de-Bernardy:
when looking a theme that adds widgets and sidebars, dynamic_sidebar() calls currently save the sidebars_widgets option.
The option is updated only when $sidebars_widgets['array_version'] = 3
is not set and is_admin()
is true. This is a test if the data in the array is in old format which only happens when upgrading WordPress from 2.3 (I think).
Note: See
TracTickets for help on using
tickets.
the test could also be a straight false, or !is_admin()...