WordPress/wp-includes/js
Adam Silverstein 274792f9cd REST API: JS client - Enumerate endpoints supporting trash.
Improve the logic determining which endpoints support the trash by enumerating them. Endpoints that don't support the trash require `force=true` when deleting. The previous approach relied on the `force` argument description, which is a translated string and was fragile. In the future, we can expose whether an endpoint supports the trash as part of its schema and automate this logic.

Props Soean.
Fixes #40672.


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


git-svn-id: http://core.svn.wordpress.org/trunk@41881 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-10-31 02:54:48 +00:00
..
codemirror Editor: Add CodeMirror-powered code editor with syntax highlighting, linting, and auto-completion. 2017-09-13 06:08:47 +00:00
crop
imgareaselect
jcrop
jquery External Libraries: Update jQuery Form (unused in core) to the latest version, 4.2.1. 2017-08-05 13:00:47 +00:00
mediaelement Media: Add missing `mediaelement-migrate.js` script to get uglified. 2017-10-18 02:26:48 +00:00
plupload Plupload: minify and load `plupload.js` and `moxie.js` separately to make them easier to debug. 2017-09-22 20:10:48 +00:00
swfupload Remove SWFUpload, 2017-09-21 16:35:48 +00:00
thickbox Administration: Thickbox: Fix conflicts with the Plugin details and native Thickbox modals. 2017-09-09 14:14:43 +00:00
tinymce TinyMCE: Set undefined FloatPanel zIndex 2017-10-24 16:52:56 +00:00
admin-bar.js
admin-bar.min.js
api-request.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
api-request.min.js REST API: Allow overriding `jQuery.ajax` calls from within wp-admin 2017-08-02 16:45:44 +00:00
autosave.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
autosave.min.js
backbone.min.js
colorpicker.js
colorpicker.min.js
comment-reply.js Docs: improve JS docs for `comment-reply.js` 2017-08-24 17:58:44 +00:00
comment-reply.min.js
customize-base.js Customize: Constrain focus when overlay notification is displayed. 2017-10-10 03:34:53 +00:00
customize-base.min.js Customize: Constrain focus when overlay notification is displayed. 2017-10-10 03:34:53 +00:00
customize-loader.js Customize: Eliminate use of customize-loader in core so Customizer is opened consistently in `top` window. 2017-10-09 16:04:48 +00:00
customize-loader.min.js Customize: Eliminate use of customize-loader in core so Customizer is opened consistently in `top` window. 2017-10-09 16:04:48 +00:00
customize-models.js Customizer: Minimize duplicate header crops in the media library. 2017-10-04 14:59:48 +00:00
customize-models.min.js Customizer: Minimize duplicate header crops in the media library. 2017-10-04 14:59:48 +00:00
customize-preview-nav-menus.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
customize-preview-nav-menus.min.js Customize: Fix ability to shift-click on placeholder/pre-saved nav menu items in preview to focus on corresponding control. 2016-12-10 23:47:41 +00:00
customize-preview-widgets.js Widgets: Update preview for Gallery widget when one of its attachments is modified in the media modal, outside the customized state. 2017-10-16 06:46:48 +00:00
customize-preview-widgets.min.js Widgets: Update preview for Gallery widget when one of its attachments is modified in the media modal, outside the customized state. 2017-10-16 06:46:48 +00:00
customize-preview.js Customize: Ensure `customized` changes pending to be written into changeset are successfully injected into Ajax requests in preview. 2017-10-10 04:51:47 +00:00
customize-preview.min.js Customize: Ensure `customized` changes pending to be written into changeset are successfully injected into Ajax requests in preview. 2017-10-10 04:51:47 +00:00
customize-selective-refresh.js Customize: Support instantiation of partials with flat/unwrapped params for parity with controls, sections, and panels in [41726]. 2017-10-29 00:15:53 +00:00
customize-selective-refresh.min.js Customize: Support instantiation of partials with flat/unwrapped params for parity with controls, sections, and panels in [41726]. 2017-10-29 00:15:53 +00:00
customize-views.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
customize-views.min.js Customize: Prevent vertical clipping of thumbnail in header image customizer control. 2017-02-20 00:10:49 +00:00
heartbeat.js Customize: Add changeset locking in Customizer to prevent users from overriding each other's changes. 2017-10-12 04:01:46 +00:00
heartbeat.min.js Customize: Add changeset locking in Customizer to prevent users from overriding each other's changes. 2017-10-12 04:01:46 +00:00
hoverIntent.js
hoverIntent.min.js
imagesloaded.min.js
json2.js
json2.min.js
masonry.min.js
mce-view.js Editor: Specify `maxwidth` in `parse-embed` requests based on width of editor iframe so that TinyMCE view embeds fit, particularly in Text widgets. 2017-10-24 04:07:50 +00:00
mce-view.min.js Editor: Specify `maxwidth` in `parse-embed` requests based on width of editor iframe so that TinyMCE view embeds fit, particularly in Text widgets. 2017-10-24 04:07:50 +00:00
media-audiovideo.js Media: Fix MEJS error when removing a media player. 2017-10-06 16:31:54 +00:00
media-audiovideo.min.js Media: Fix MEJS error when removing a media player. 2017-10-06 16:31:54 +00:00
media-editor.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
media-editor.min.js
media-grid.js Media Grid: Fix escape key sometimes failing to close details modal. 2017-10-13 18:21:49 +00:00
media-grid.min.js Media Grid: Fix escape key sometimes failing to close details modal. 2017-10-13 18:21:49 +00:00
media-models.js Build: Webpack instead of Browserify as JavaScript bundler. 2017-10-04 21:02:23 +00:00
media-models.min.js Build: Webpack instead of Browserify as JavaScript bundler. 2017-10-04 21:02:23 +00:00
media-views.js Customizer: Improve handling of crops in the media library. 2017-10-19 04:18:47 +00:00
media-views.min.js Customizer: Improve handling of crops in the media library. 2017-10-19 04:18:47 +00:00
quicktags.js Editor: manually trigger `change` event when text is modified from JS. 2017-05-11 00:29:41 +00:00
quicktags.min.js Editor: manually trigger `change` event when text is modified from JS. 2017-05-11 00:29:41 +00:00
shortcode.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
shortcode.min.js Shortcodes: Allow using single quotes for empty value attributes. 2017-07-11 00:54:41 +00:00
swfobject.js
tw-sack.js
tw-sack.min.js
twemoji.js Emoji: Update Twemoji to 2.5.0. 2017-08-14 02:04:45 +00:00
twemoji.min.js Emoji: Update Twemoji to 2.5.0. 2017-08-14 02:04:45 +00:00
underscore.min.js
utils.js Move `sanitizeText` and `stripTags` from press this to `wp.sanitize`. 2017-07-15 15:48:46 +00:00
utils.min.js
wp-a11y.js File Editors: Introduce sandboxed live editing of PHP files with rollbacks for both themes and plugins. 2017-10-04 00:20:45 +00:00
wp-a11y.min.js Accessibility: Make Safari 10 + VoiceOver announce repeated, identical, `wp.a11y.speak()` messages. 2017-04-19 19:53:42 +00:00
wp-ajax-response.js
wp-ajax-response.min.js
wp-api.js REST API: JS client - Enumerate endpoints supporting trash. 2017-10-31 02:54:48 +00:00
wp-api.min.js REST API: JS client - Enumerate endpoints supporting trash. 2017-10-31 02:54:48 +00:00
wp-auth-check.js
wp-auth-check.min.js
wp-backbone.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
wp-backbone.min.js
wp-custom-header.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
wp-custom-header.min.js
wp-embed-template.js
wp-embed-template.min.js
wp-embed.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
wp-embed.min.js
wp-emoji-loader.js Emoji: Refactor browser support tests. 2017-10-02 04:00:48 +00:00
wp-emoji-loader.min.js Emoji: Refactor browser support tests. 2017-10-02 04:00:48 +00:00
wp-emoji-release.min.js Emoji: Update Twemoji to 2.5.0. 2017-08-14 02:04:45 +00:00
wp-emoji.js
wp-emoji.min.js
wp-list-revisions.js
wp-list-revisions.min.js
wp-lists.js
wp-lists.min.js
wp-pointer.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
wp-pointer.min.js
wp-sanitize.js Security: Rename new `wp.sanitize.sanitizeText` to `stripTagsAndEncodeText`.' 2017-10-04 18:58:47 +00:00
wp-sanitize.min.js Security: Rename new `wp.sanitize.sanitizeText` to `stripTagsAndEncodeText`.' 2017-10-04 18:58:47 +00:00
wp-util.js Docs: JSDoc improvements for namespaces. 2017-09-08 18:42:49 +00:00
wp-util.min.js
wpdialog.js
wpdialog.min.js
wplink.js Editor: Prevent adding `javascript:` and `data:` URLs through the inline link dialog. 2017-09-19 08:01:45 +00:00
wplink.min.js Editor: Prevent adding `javascript:` and `data:` URLs through the inline link dialog. 2017-09-19 08:01:45 +00:00
zxcvbn-async.js
zxcvbn-async.min.js
zxcvbn.min.js Libraries: Update zxcvbn from version 1.0 to 4.4.1 2016-12-13 11:23:42 +00:00