#9770 closed defect (bug) (invalid)
dynamic_sidebar() should not save widgets on theme preview
| Reported by: | Denis-de-Bernardy | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Widgets | Version: | 2.8 |
| Severity: | minor | Keywords: | has-patch dev-feedback |
| Cc: | Focuses: |
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
@
17 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
the test could also be a straight false, or !is_admin()...