Skip to content

Widgets REST API: Make DELETE endpoint delete the widget's option#1323

Closed
noisysocks wants to merge 2 commits intoWordPress:masterfrom
noisysocks:fix/force-delete-in-widgets-rest-api
Closed

Widgets REST API: Make DELETE endpoint delete the widget's option#1323
noisysocks wants to merge 2 commits intoWordPress:masterfrom
noisysocks:fix/force-delete-in-widgets-rest-api

Conversation

@noisysocks
Copy link
Member

The DELETE /wp/v2/widgets/:id?force=1 endpoint was only removing widgets from the 'sidebars_widgets' option and not actually deleting the widget's options from the "widget-$id_base" option. This PR implements widget deletion.

https://core.trac.wordpress.org/ticket/53313


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@noisysocks noisysocks closed this Jun 2, 2021
@noisysocks noisysocks deleted the fix/force-delete-in-widgets-rest-api branch June 2, 2021 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants