WordPress.org

Make WordPress Core

Changes between Initial Version and Version 5 of Ticket #41087


Ignore:
Timestamp:
06/26/2017 09:24:59 AM (2 years ago)
Author:
obenland
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #41087

    • Property Keywords needs-patch added
    • Property Version changed from 4.8 to 3.9
    • Property Milestone changed from Awaiting Review to 4.8.1
  • Ticket #41087 – Description

    initial v5  
    11When deleting a widget from {{{widgets.php}}}, for example a new Media Image Widget, the widget instance is removed from the {{{widget_media_image}}} site option, along with association/placement value in {{{sidebars_widgets}}}.
    22
    3 However, if a widget is removed using the customizer, the widget data ( again in this case testing with an image widget ), still exists in {{{get_option( 'widget_media_image' )}}}, while the entry in {{{sidebars_widgets}}} is again properly removed.
     3In the customizer however, if a widget is removed without having been saved first, the widget data ( again in this case testing with an image widget ), still exists in {{{get_option( 'widget_media_image' )}}}, while the entry in {{{sidebars_widgets}}} is either never added or properly removed.
    44
    55It seems removal of a widget in both places ( widgets.php and customizer ) should result in the removal from the associated option in both cases.