[wp-trac] [WordPress Trac] #33874: Widget not saving new options after updating.

WordPress Trac noreply at wordpress.org
Mon Sep 14 21:02:35 UTC 2015


#33874: Widget not saving new options after updating.
----------------------------+-----------------------------
 Reporter:  Kometschuh      |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Widgets         |    Version:  4.3
 Severity:  normal          |   Keywords:
  Focuses:  administration  |
----------------------------+-----------------------------
 Hello Wordpress.org,

 my/our problem is new added default options with true doesn't work after
 updates?

 I added this code below for adding a new option with setting to true
 (show/hide the title of the Widget).
 The code works fine, but when the code comes with a update, the update
 don't generate the database entry. It means the update make no 'save' or
 'initialising'.
 [https://github.com/mkrdip/category-posts-
 widget/commit/602ee56f4e364414685b555ab0e7ce1c5b84d012#diff-
 42e4400fb3d9df303bef84d66f9370e6]

 After save the Widget or new replacement to the site Widget area the
 code/Widget works fine.

 My recommendation is to make a 'save' after Widget updating!

 May be this issue #19 can help to picture our problem:
 [https://github.com/mkrdip/category-posts-widget/issues/19]

 Regards
 Daniel

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33874>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list