WordPress/wp-includes
noisysocks 2fd3f23408 REST API: Fix delete widget endpoint
Makes the `DELETE /wp/v2/widgets/:id?force=1` endpoint actually delete the
widget from the `"widget-$id_base"` option and not just remove it from
`'sidebars_widgets'`.

Fixes #53313.
Props TimothyBlynJacobs.

Built from https://develop.svn.wordpress.org/trunk@51059


git-svn-id: http://core.svn.wordpress.org/trunk@50668 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-02 01:22:57 +00:00
..
assets Block Editor: Update packages and backport the latest Gutenberg fixes. 2021-06-01 08:10:04 +00:00
block-patterns Block Editor: Add support for the pattern directory. 2021-05-26 01:11:59 +00:00
block-supports Block Editor: Update packages and backport the latest Gutenberg fixes. 2021-06-01 08:10:04 +00:00
blocks Block Editor: Update the Gutenberg branch used to launch Gutenberg e2e tests. 2021-06-01 09:22:58 +00:00
certificates
css Block Editor: Update packages and backport the latest Gutenberg fixes. 2021-06-01 08:10:04 +00:00
customize Adds the widgets block editor to widgets.php and customize.php 2021-05-25 08:52:58 +00:00
fonts
ID3 External libraries: Include upstream GetID3 fix for PHP 8. 2021-04-14 23:10:04 +00:00
images
IXR XML-RPC: Set HTTP status code in accordance with the spec. 2021-05-24 02:18:58 +00:00
js Block Editor: Update packages and backport the latest Gutenberg fixes. 2021-06-01 08:10:04 +00:00
PHPMailer External Libraries: Upgrade PHPMailer to version 6.4.1. 2021-04-29 20:30:06 +00:00
pomo General: Avoid a PHP warning when checking the mbstring.func_overload PHP value. 2021-05-26 16:05:59 +00:00
random_compat
Requests External Libraries: Update the Requests library to version 1.8.0. 2021-05-11 19:42:02 +00:00
rest-api REST API: Fix delete widget endpoint 2021-06-02 01:22:57 +00:00
SimplePie
sitemaps Coding Standards: Add a space before / character in some self-closing HTML tags. 2021-03-20 18:30:08 +00:00
sodium_compat Upgrade/Install: Update sodium_compat to v1.16.1. 2021-05-25 13:55:58 +00:00
Text
theme-compat
widgets Widget block: Add widget_block_content filter 2021-06-02 01:18:57 +00:00
admin-bar.php Network and Sites: Display site icons in the My Sites menu. 2021-05-10 18:24:01 +00:00
atomlib.php
author-template.php Docs: Document parameters that accept an array of integers using typed array notation. 2020-11-19 18:24:09 +00:00
block-editor.php Block Editor: Fix logic to enable custom colors, gradients, and font sizes. 2021-05-26 14:25:59 +00:00
block-patterns.php Block Editor: Add support for the pattern directory. 2021-05-26 01:11:59 +00:00
block-template-utils.php Block Editor: Introduce block templates for classic themes. 2021-05-25 14:20:57 +00:00
block-template.php Block Editor: Introduce block templates for classic themes. 2021-05-25 14:20:57 +00:00
blocks.php Docs: Document that has_block() does not check reusable blocks. 2021-05-29 18:43:00 +00:00
bookmark-template.php Docs: Clarify that the $class argument of wp_list_bookmarks() can accept an array. 2020-11-24 12:29:07 +00:00
bookmark.php General: Ensure consistent type for integer properties of a bookmark object. 2021-05-20 00:04:56 +00:00
cache-compat.php
cache.php Docs: Upgrade more parameters in docblocks to used typed array notation. 2020-11-24 21:27:05 +00:00
canonical.php Canonical: Prevent ID enumeration of private post slugs. 2021-02-02 00:40:01 +00:00
capabilities.php Roles/Caps: Return same result from current_user_can and user_can(). 2021-03-04 00:14:04 +00:00
category-template.php Docs: Correct default value for the number argument of wp_tag_cloud(). 2021-01-24 14:07:57 +00:00
category.php
class-feed.php
class-http.php Docs: Promote many bool types to true or false where only that value is used. 2021-01-03 22:04:04 +00:00
class-IXR.php
class-json.php Coding Standards: Pass an empty string instead of null as the $replacement parameter to _deprecated_file(). 2020-11-12 11:17:07 +00:00
class-oembed.php
class-phpass.php External Libraries: Update the phpass library to version 0.5. 2021-05-25 18:47:59 +00:00
class-phpmailer.php
class-pop3.php
class-requests.php External Libraries: Update the Requests library to version 1.8.0. 2021-05-11 19:42:02 +00:00
class-simplepie.php
class-smtp.php Mail: Make sure the SMTP class is only required once if a plugin requires wp-includes/class-smtp.php directly. 2021-01-26 13:45:57 +00:00
class-snoopy.php
class-walker-category-dropdown.php
class-walker-category.php
class-walker-comment.php Comments: Remove fourth parameter on remove_filter call. 2021-05-05 18:54:57 +00:00
class-walker-nav-menu.php Docs: Correct the aria-current array key in the documentation for two widget filters. 2021-05-07 09:46:58 +00:00
class-walker-page-dropdown.php
class-walker-page.php Docs: Correct the aria-current array key in the documentation for two widget filters. 2021-05-07 09:46:58 +00:00
class-wp-admin-bar.php
class-wp-ajax-response.php
class-wp-application-passwords.php Docs: Update documentation for WP_Application_Passwords::application_name_exists_for_user() per the documentation standards. 2021-01-28 13:10:57 +00:00
class-wp-block-editor-context.php Editor: Add missing class WP_Block_Editor_Context 2021-05-24 07:38:58 +00:00
class-wp-block-list.php
class-wp-block-parser.php Editor: Update @wordpress npm packages 2021-02-02 05:17:13 +00:00
class-wp-block-pattern-categories-registry.php Docs: Synchronize $category_name description in WP_Block_Pattern_Categories_Registry methods. 2021-03-13 11:17:03 +00:00
class-wp-block-patterns-registry.php Docs: Synchronize $category_name description in WP_Block_Pattern_Categories_Registry methods. 2021-03-13 11:17:03 +00:00
class-wp-block-styles-registry.php Blocks: Add is_default handling to server side block styles registry 2021-04-13 08:04:13 +00:00
class-wp-block-supports.php Editor: Update @wordpress npm packages 2021-01-28 02:04:13 +00:00
class-wp-block-template.php Block Editor: Introduce block templates for classic themes. 2021-05-25 14:20:57 +00:00
class-wp-block-type-registry.php Docs: Improve documentation for WP_Block_Type properties. 2021-02-23 19:18:02 +00:00
class-wp-block-type.php Docs: Add missing @since tags for item_link and item_link_description post type and taxonomy labels. 2021-03-13 10:25:06 +00:00
class-wp-block.php Editor: Introduce a dynamic filter for the content of a single block: 2021-02-01 18:06:03 +00:00
class-wp-comment-query.php Plugins: Replace usage of $this in action and filter parameter docblocks with more appropriate variable names. 2021-01-08 14:30:14 +00:00
class-wp-comment.php Docs: Promote many bool types to true or false where only that value is used. 2021-01-03 22:04:04 +00:00
class-wp-customize-control.php Adds the widgets block editor to widgets.php and customize.php 2021-05-25 08:40:25 +00:00
class-wp-customize-manager.php Robots: Introduce Robots API. 2021-01-21 01:37:00 +00:00
class-wp-customize-nav-menus.php Coding Standards: Use strict comparison in wp-includes/class-wp-customize-nav-menus.php. 2021-05-30 19:18:01 +00:00
class-wp-customize-panel.php
class-wp-customize-section.php
class-wp-customize-setting.php Plugins: Replace usage of $this in action and filter parameter docblocks with more appropriate variable names. 2021-01-08 14:30:14 +00:00
class-wp-customize-widgets.php Widgets: Remove unnecessary enqueue of 'format-library' assets 2021-05-27 01:50:57 +00:00
class-wp-date-query.php Docs: Document parameters that accept an array of integers using typed array notation. 2020-11-19 18:24:09 +00:00
class-wp-dependency.php
class-wp-editor.php Editor: Hide the quicktags toolbar when JavaScript is disabled. 2021-05-24 19:44:57 +00:00
class-wp-embed.php Widget block: Add widget_block_content filter 2021-06-02 01:18:57 +00:00
class-wp-error.php
class-wp-fatal-error-handler.php Site Health: Link to the support article on troubleshooting in "There has been a critical error" message. 2021-02-09 16:59:04 +00:00
class-wp-feed-cache-transient.php
class-wp-feed-cache.php Feeds: Register transient feed cache handler using the recommended method for SimplePie 1.3 or later. 2020-11-12 14:36:10 +00:00
class-wp-hook.php Docs: Further synchronize documentation for some Plugin API functions. 2021-05-04 15:01:58 +00:00
class-wp-http-cookie.php
class-wp-http-curl.php
class-wp-http-encoding.php Docs: In various @return tags, list the expected type first, instead of false. 2021-01-15 20:08:07 +00:00
class-wp-http-ixr-client.php Docs: Promote many bool types to true or false where only that value is used. 2021-01-03 22:04:04 +00:00
class-wp-http-proxy.php
class-wp-http-requests-hooks.php Docs: Add missing @since tags. 2020-11-19 17:54:05 +00:00
class-wp-http-requests-response.php
class-wp-http-response.php
class-wp-http-streams.php Docs: Various docblock corrections and improvements. 2020-11-14 16:35:06 +00:00
class-wp-image-editor-gd.php Images: enable WebP support. 2021-05-04 14:44:58 +00:00
class-wp-image-editor-imagick.php Media: Remove an extra variable and a redundant check in WP_Image_Editor_Imagick::set_quality(). 2021-05-06 15:04:57 +00:00
class-wp-image-editor.php Media: Some documentation and test improvements for the image_editor_output_format filter: 2021-05-22 13:00:02 +00:00
class-wp-list-util.php Docs: Improve documentation for wp_list_filter() and wp_filter_object_list(). 2021-05-28 18:04:57 +00:00
class-wp-locale-switcher.php I18N: Revert [49236] for now to investigate alternative implementations. 2020-11-12 14:43:09 +00:00
class-wp-locale.php
class-wp-matchesmapregex.php
class-wp-meta-query.php Query: Consistently include a space in parentheses in WP_Meta_Query::get_sql_for_clause(). 2021-03-25 12:39:07 +00:00
class-wp-metadata-lazyloader.php Docs: Various docblock corrections particularly relating to boolean types. 2021-01-03 21:57:09 +00:00
class-wp-network-query.php Plugins: Replace usage of $this in action and filter parameter docblocks with more appropriate variable names. 2021-01-08 14:30:14 +00:00
class-wp-network.php Docs: Promote many bool types to true or false where only that value is used. 2021-01-03 22:04:04 +00:00
class-wp-object-cache.php Docs: Various docblock corrections relating to parameter types. 2020-11-24 21:22:04 +00:00
class-wp-oembed-controller.php Docs: Corrections and improvements to inline docs relating to the REST API. 2020-11-16 11:04:12 +00:00
class-wp-oembed.php Docs: Promote many bool types to true or false where only that value is used. 2021-01-03 22:04:04 +00:00
class-wp-paused-extensions-storage.php
class-wp-post-type.php Docs: Various docblock improvements. 2020-12-10 23:59:03 +00:00
class-wp-post.php Docs: Docblock corrections relating to WP_Post objects. 2020-11-09 15:15:08 +00:00
class-wp-query.php Query: Consistently include a space in parentheses in WP_Meta_Query::get_sql_for_clause(). 2021-03-25 12:39:07 +00:00
class-wp-recovery-mode-cookie-service.php
class-wp-recovery-mode-email-service.php Coding Standards: Move some translator comments to the correct place. 2021-04-04 18:30:05 +00:00
class-wp-recovery-mode-key-service.php
class-wp-recovery-mode-link-service.php Docs: Document the usage of $pagenow global in a few functions. 2021-02-22 19:18:12 +00:00
class-wp-recovery-mode.php
class-wp-rewrite.php Docs: Clarify and standardise on terminology used for rewrite rule endpoint masks. 2020-11-19 16:15:08 +00:00
class-wp-role.php
class-wp-roles.php
class-wp-session-tokens.php Code Modernization: Remove final keyword from private methods. 2020-08-12 15:05:08 +00:00
class-wp-simplepie-file.php Docs: Miscellaneous DocBlock corrections. 2021-05-15 17:38:05 +00:00
class-wp-simplepie-sanitize-kses.php
class-wp-site-query.php Plugins: Replace usage of $this in action and filter parameter docblocks with more appropriate variable names. 2021-01-08 14:30:14 +00:00
class-wp-site.php Docs: Various docblock corrections and improvements. 2021-02-20 17:10:11 +00:00
class-wp-tax-query.php
class-wp-taxonomy.php Taxonomy: Reorder some WP_Taxonomy properties for consistency. 2021-02-01 11:55:00 +00:00
class-wp-term-query.php Docs: Fix indentation for wp_term_query->construct method parameters. 2021-03-29 21:35:07 +00:00
class-wp-term.php Docs: Various docblock corrections. 2020-12-10 23:53:07 +00:00
class-wp-text-diff-renderer-inline.php
class-wp-text-diff-renderer-table.php Revisions: Generate correct number of columns in wp_text_diff. 2021-01-27 21:53:58 +00:00
class-wp-theme-json-resolver.php Docs: Some documentation and test improvements for WP_Theme_JSON and WP_Theme_JSON_Resolver classes: 2021-05-24 13:25:56 +00:00
class-wp-theme-json.php Block Editor: Update packages and backport the latest Gutenberg fixes. 2021-06-01 08:10:04 +00:00
class-wp-theme.php Block Editor: Introduce block templates for classic themes. 2021-05-25 14:20:57 +00:00
class-wp-user-meta-session-tokens.php
class-wp-user-query.php Plugins: Replace usage of $this in action and filter parameter docblocks with more appropriate variable names. 2021-01-08 14:30:14 +00:00
class-wp-user-request.php
class-wp-user.php Roles/Caps: Return same result from current_user_can and user_can(). 2021-03-04 00:14:04 +00:00
class-wp-walker.php
class-wp-widget-factory.php REST API: Add widget endpoints 2021-05-25 08:27:57 +00:00
class-wp-widget.php Widgets: Make sure WP_Widget constructor creates a correct classname value for a namespaced widget class. 2021-05-24 09:51:56 +00:00
class-wp-xmlrpc-server.php XML-RPC: Set HTTP status code in accordance with the spec. 2021-05-24 02:18:58 +00:00
class-wp.php Comments: Extend the duration of the window within which unapproved comments are visible by their author. 2021-02-09 16:57:04 +00:00
class.wp-dependencies.php
class.wp-scripts.php Script Loader: Prevent wp_localize_script() warnings. 2021-02-22 23:23:07 +00:00
class.wp-styles.php Docs: Use correct variable in the style_loader_tag filter DocBlock. 2021-02-27 17:59:03 +00:00
comment-template.php Docs: Corrections and improvements to types used in various docblocks. 2021-01-05 17:16:11 +00:00
comment.php Docs: Clarify return results for a non-existing ID in metadata functions. 2021-04-02 15:49:05 +00:00
compat.php Media: Some documentation and test improvements for WebP support: 2021-05-05 17:08:01 +00:00
cron.php Cron API: Add a missing $wp_error parameter to the pre_reschedule_event filter. 2021-02-20 12:11:03 +00:00
date.php
default-constants.php
default-filters.php Widget block: Add widget_block_content filter 2021-06-02 01:18:57 +00:00
default-widgets.php REST API: Add widget endpoints 2021-05-25 08:27:57 +00:00
deprecated.php Images: enable WebP support. 2021-05-04 14:44:58 +00:00
embed-template.php
embed.php Coding Standards: Add a space before / character in some self-closing HTML tags. 2021-03-20 18:30:08 +00:00
error-protection.php
feed-atom-comments.php
feed-atom.php Coding Standards: Add a space before / character in some self-closing HTML tags. 2021-03-20 18:30:08 +00:00
feed-rdf.php
feed-rss2-comments.php
feed-rss2.php
feed-rss.php
feed.php Docs: Miscellaneous DocBlock corrections. 2021-05-15 17:38:05 +00:00
formatting.php Images: enable WebP support. 2021-05-04 14:44:58 +00:00
functions.php Docs: Add a @since note to wp_parse_id_list() and wp_parse_slug_list() about using wp_parse_list(). 2021-06-01 21:21:57 +00:00
functions.wp-scripts.php Script Loader: Explicitly declare the $pagenow global in wp_deregister_script(). 2021-02-20 09:56:04 +00:00
functions.wp-styles.php
general-template.php Docs: Improve documentation for the wp_resource_hints filter. 2021-05-31 15:39:59 +00:00
http.php
https-detection.php Docs: Miscellaneous DocBlock corrections. 2021-05-15 17:38:05 +00:00
https-migration.php Security, Site Health: Make migrating a site to HTTPS a one-click interaction. 2021-02-02 00:10:01 +00:00
kses.php Coding Standards: Apply some minor coding standards adjustments. 2021-05-25 17:43:57 +00:00
l10n.php Docs: In various @return tags, list the expected type first, instead of false. 2021-01-15 20:08:07 +00:00
link-template.php General: Pass the scheme to the *_url filters. 2021-05-26 01:47:59 +00:00
load.php Text Changes: Improve the wording of some error messages. 2021-05-21 10:49:57 +00:00
locale.php
media-template.php Coding Standards: Add a space before / character in some self-closing HTML tags. 2021-03-20 18:30:08 +00:00
media.php Docs: Correct @since tags for new properties and functions related to infinite scrolling in Media Library. 2021-05-08 11:22:03 +00:00
meta.php Docs: Clarify return results for a non-existing ID in metadata functions. 2021-04-02 15:49:05 +00:00
ms-blogs.php
ms-default-constants.php
ms-default-filters.php
ms-deprecated.php Docs: Document parameters that accept an array of integers using typed array notation. 2020-11-19 18:24:09 +00:00
ms-files.php
ms-functions.php Docs: Corrections and improvements to types used in various docblocks. 2021-01-05 17:16:11 +00:00
ms-load.php
ms-network.php
ms-settings.php
ms-site.php Docs: Clarify return results for a non-existing ID in metadata functions. 2021-04-02 15:49:05 +00:00
nav-menu-template.php Docs: Promote many bool types to true or false where only that value is used. 2021-01-03 22:04:04 +00:00
nav-menu.php Docs: Miscellaneous docblock updates. 2021-05-07 20:16:00 +00:00
option.php Docs: Improve documentation for get_option(). Clean up, clarify the returned types and the exceptions, and add few examples. 2021-06-01 00:00:58 +00:00
pluggable-deprecated.php
pluggable.php Docs: Use 3-digit, x.x.x-style semantic versioning for two _doing_it_wrong() calls. 2021-05-22 13:09:56 +00:00
plugin.php Docs: Further synchronize documentation for some Plugin API functions. 2021-05-04 15:01:58 +00:00
post-formats.php Docs: Upgrade more parameters in docblocks to used typed array notation. 2020-11-24 21:27:05 +00:00
post-template.php Posts, Post Types: Pass the post object to the_password_form filter. 2021-04-26 15:38:05 +00:00
post-thumbnail-template.php Docs: Clarify the @return value for wp_get_attachment_image_url() and get_the_post_thumbnail_url(). 2021-02-08 14:14:08 +00:00
post.php Posts, Post Types: Speed cached get_pages() calls. 2021-05-25 23:41:57 +00:00
query.php Docs: Promote many bool types to true or false where only that value is used. 2021-01-03 22:04:04 +00:00
registration-functions.php Coding Standards: Pass an empty string instead of null as the $replacement parameter to _deprecated_file(). 2020-11-12 11:17:07 +00:00
registration.php Coding Standards: Pass an empty string instead of null as the $replacement parameter to _deprecated_file(). 2020-11-12 11:17:07 +00:00
rest-api.php Block Editor: Add support for the pattern directory. 2021-05-26 01:11:59 +00:00
revision.php Revisions: add a new filter for revisions to keep by post type. 2021-05-21 15:29:55 +00:00
rewrite.php Docs: Clarify and standardise on terminology used for rewrite rule endpoint masks. 2020-11-19 16:15:08 +00:00
robots-template.php Robots: Remove contradictory directive check in wp_robots(). 2021-03-23 23:02:05 +00:00
rss-functions.php Feeds: Add an early exit when calling RSS functions directly. 2020-11-16 22:52:05 +00:00
rss.php Docs: In various @return tags, list the expected type first, instead of false or WP_Error. 2021-01-04 17:18:04 +00:00
script-loader.php Block Editor: Load the WP_Theme_JSON_Resolver class in wp-admin/load-styles.php. 2021-06-01 23:09:58 +00:00
session.php
shortcodes.php Docs: In various @return tags, list the expected type first, instead of false. 2021-01-15 20:08:07 +00:00
sitemaps.php Docs: Miscellaneous DocBlock corrections. 2021-05-15 17:38:05 +00:00
spl-autoload-compat.php Coding Standards: Pass an empty string instead of null as the $replacement parameter to _deprecated_file(). 2020-11-12 11:17:07 +00:00
taxonomy.php Block Editor: Introduce block templates for classic themes. 2021-05-25 14:20:57 +00:00
template-canvas.php Block Editor: Introduce block templates for classic themes. 2021-05-25 14:20:57 +00:00
template-loader.php
template.php Block Editor: Introduce block templates for classic themes. 2021-05-25 14:20:57 +00:00
theme-i18n.json Block Editor: Add Global Settings support using theme.json file. 2021-05-24 08:37:55 +00:00
theme-templates.php Block Editor: Introduce block templates for classic themes. 2021-05-25 14:20:57 +00:00
theme.json Block Editor: Update color merging algorithm. 2021-05-24 18:57:55 +00:00
theme.php Docs: Various docblock corrections and improvements. 2021-02-20 17:10:11 +00:00
update.php Plugins: Add support for Update URI header. 2021-05-17 17:04:01 +00:00
user.php Users: Pass on the user data received by wp_insert_user() to related hooks. 2021-05-25 17:39:57 +00:00
vars.php
version.php REST API: Fix delete widget endpoint 2021-06-02 01:22:57 +00:00
widgets.php Adds the widgets block editor to widgets.php and customize.php 2021-05-25 08:40:25 +00:00
wlwmanifest.xml
wp-db.php Docs: Miscellaneous docblock corrections and improvements. 2021-01-07 14:17:11 +00:00
wp-diff.php