New checkbox in custom widget isn’t saving data
It seems the problem lies within redefining a widget: a widget with the ID “recent-posts” already exists, and that’s causing some strange behaviour when saving the widget. This is possibly due the callback on saving the widget being on the original widget class WP_Widget_Recent_Posts). It’s not really a good idea anyway to redefine a widget; … Read more