mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-20 13:38:37 +00:00
Adds new hooks (rest_save_sidebar, rest_delete_widget, rest_after_save_widget) to the widgets REST API and uses them to delete the fresh_site option when updating widgets via the REST API. This ensures that starter content isn't loaded in the Customizer after a user makes changes. Fixes #53317. Props kevin940726, garrett-eclipse, andraganescu, hellofromtonya. Built from https://develop.svn.wordpress.org/trunk@51068 git-svn-id: http://core.svn.wordpress.org/trunk@50677 1a063a9b-81f0-0310-95a4-ce76da25c4cd