[wp-trac] [WordPress Trac] #41894: Clear dirty flag on widgets admin screen when widget is deleted to prevent irrelevant “Are you sure?” prompt

WordPress Trac noreply at wordpress.org
Tue Oct 10 18:02:21 UTC 2017


#41894: Clear dirty flag on widgets admin screen when widget is deleted to prevent
irrelevant “Are you sure?” prompt
--------------------------+--------------------------
 Reporter:  westonruter   |       Owner:  westonruter
     Type:  defect (bug)  |      Status:  accepted
 Priority:  high          |   Milestone:  4.9
Component:  Widgets       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  javascript
--------------------------+--------------------------
Description changed by westonruter:

Old description:

> With [41352] for #41352 there is now an “Are you sure?” dialog that
> appears if you try leaving the widgets admin screen without first having
> saved a widget that you were modifying. This logic is not currently
> taking into account the scenario where by you delete a widget that you
> started making changes to. When a widget is deleted, any corresponding
> dirty flag also needs to be removed.

New description:

 With [41352] for #23120 there is now an “Are you sure?” dialog that
 appears if you try leaving the widgets admin screen without first having
 saved a widget that you were modifying. This logic is not currently taking
 into account the scenario where by you delete a widget that you started
 making changes to. When a widget is deleted, any corresponding dirty flag
 also needs to be removed.

--

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41894#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list