WordPress/wp-includes/js
joedolson daa1cbbbfe Media: Adapt response shape depending on type of query.
Restore inheriting the backbone fetch in the media library and adapt the AJAX response according to the action performed in the media query.

In [51145], the response shape was restored to the original shape, and a custom fetch was added to handle assigning the totalAttachments information in the collection. The custom fetch triggered a new set of bugs relating to zero-sized collections and loading individual images. 

props adamsilverstein, ryelle, peterwilsoncc, Presskopp, desrosj.
Fixes #53421, #53419.
Built from https://develop.svn.wordpress.org/trunk@51187


git-svn-id: http://core.svn.wordpress.org/trunk@50796 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2021-06-20 23:27:01 +00:00
..
codemirror
crop
dist Block Editor: Second batch of fixes for 5.8 beta 2 2021-06-15 15:30:24 +00:00
imgareaselect Build/Test Tools: Update the several dependencies. 2021-05-27 19:33:19 +00:00
jcrop
jquery Build/Test Tools: Update several `devDependencies`. 2021-06-08 17:15:15 +00:00
mediaelement Build/Test Tools: Update the `uglify-js` package. 2021-01-20 13:35:18 +00:00
plupload Build/Test Tools: Update several `devDependencies`. 2021-06-08 17:15:15 +00:00
swfupload
thickbox External Libraries: Correct `click` event handling in the Thickbox library. 2021-02-23 10:54:06 +00:00
tinymce Build/Test Tools: Update several `devDependencies`. 2021-06-08 17:15:15 +00:00
admin-bar.js
admin-bar.min.js Build/Test Tools: Update the `uglify-js` package. 2021-01-20 13:35:18 +00:00
api-request.js Site Health, App Passwords: Ensure REST API responses are properly translated. 2020-12-01 03:44:05 +00:00
api-request.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
autosave.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
autosave.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
backbone.js
backbone.min.js Build/Test Tools: Update some `devDependencies`. 2021-03-18 17:48:23 +00:00
clipboard.js External Libraries: Update Clipboard.js library to version `2.0.8`. 2021-03-18 15:54:18 +00:00
clipboard.min.js Build/Test Tools: Update several `devDependencies`. 2021-06-08 17:15:15 +00:00
colorpicker.js
colorpicker.min.js Build/Test Tools: Update the several dependencies. 2021-05-11 20:12:15 +00:00
comment-reply.js
comment-reply.min.js Build/Test Tools: Update some `devDependencies`. 2021-03-18 17:48:23 +00:00
customize-base.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
customize-base.min.js Build/Test Tools: Update several `devDependencies`. 2021-06-08 17:15:15 +00:00
customize-loader.js
customize-loader.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
customize-models.js
customize-models.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
customize-preview-nav-menus.js
customize-preview-nav-menus.min.js Build/Test Tools: Update some dependencies. 2021-04-06 14:31:21 +00:00
customize-preview-widgets.js
customize-preview-widgets.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
customize-preview.js
customize-preview.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
customize-selective-refresh.js
customize-selective-refresh.min.js Build/Test Tools: Update some `devDependencies`. 2021-03-18 17:48:23 +00:00
customize-views.js
customize-views.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
heartbeat.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
heartbeat.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
hoverIntent.js External Libraries: Update jQuery hoverIntent to version 1.10.1. 2021-03-10 15:25:20 +00:00
hoverIntent.min.js External Libraries: Update jQuery hoverIntent to version 1.10.1. 2021-03-10 15:25:20 +00:00
hoverintent-js.min.js
imagesloaded.min.js
json2.js
json2.min.js Build/Test Tools: Update the `uglify-js` package. 2021-01-20 13:35:18 +00:00
masonry.min.js
mce-view.js
mce-view.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
media-audiovideo.js Build: Use deterministic module ids in webpack for media. 2021-05-25 00:12:57 +00:00
media-audiovideo.min.js Build: Use deterministic module ids in webpack for media. 2021-05-25 00:12:57 +00:00
media-editor.js
media-editor.min.js Build/Test Tools: Update the `uglify-js` package. 2021-01-20 13:35:18 +00:00
media-grid.js Build: Use deterministic module ids in webpack for media. 2021-05-25 00:12:57 +00:00
media-grid.min.js Build: Use deterministic module ids in webpack for media. 2021-05-25 00:12:57 +00:00
media-models.js Media: Adapt response shape depending on type of query. 2021-06-20 23:27:01 +00:00
media-models.min.js Media: Adapt response shape depending on type of query. 2021-06-20 23:27:01 +00:00
media-views.js Media: Restore AJAX response data shape in media library. 2021-06-14 20:50:57 +00:00
media-views.min.js Media: Restore AJAX response data shape in media library. 2021-06-14 20:50:57 +00:00
quicktags.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
quicktags.min.js Build/Test Tools: Update several `devDependencies`. 2021-06-08 17:15:15 +00:00
shortcode.js
shortcode.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
swfobject.js
tw-sack.js
tw-sack.min.js
twemoji.js Emoji: Update the Twemoji library to version 13.1.0. 2021-06-08 22:15:12 +00:00
twemoji.min.js Emoji: Update the Twemoji library to version 13.1.0. 2021-06-08 22:15:12 +00:00
underscore.js External Libraries: Update Underscore to version 1.13.1. 2021-04-21 17:55:19 +00:00
underscore.min.js Build/Test Tools: Update the several dependencies. 2021-05-27 19:33:19 +00:00
utils.js
utils.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-ajax-response.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
wp-ajax-response.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
wp-api.js
wp-api.min.js Build/Test Tools: Update some `devDependencies`. 2021-03-18 17:48:23 +00:00
wp-auth-check.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
wp-auth-check.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
wp-backbone.js
wp-backbone.min.js Build/Test Tools: Update some `devDependencies`. 2021-03-18 17:48:23 +00:00
wp-custom-header.js Customize: Set `playsinline` attribute for custom header videos. 2021-04-10 12:40:05 +00:00
wp-custom-header.min.js Customize: Set `playsinline` attribute for custom header videos. 2021-04-10 12:40:05 +00:00
wp-embed-template.js
wp-embed-template.min.js Build/Test Tools: Update the `uglify-js` package. 2021-01-20 13:35:18 +00:00
wp-embed.js
wp-embed.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-emoji-loader.js Emoji: Update the Twemoji library to version 13.1.0. 2021-06-08 22:15:12 +00:00
wp-emoji-loader.min.js Emoji: Update the Twemoji library to version 13.1.0. 2021-06-08 22:15:12 +00:00
wp-emoji-release.min.js Emoji: Update the Twemoji library to version 13.1.0. 2021-06-08 22:15:12 +00:00
wp-emoji.js
wp-emoji.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-list-revisions.js
wp-list-revisions.min.js Build/Test Tools: Update UglifyJS to the latest version. 2021-01-06 15:29:24 +00:00
wp-lists.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-02-23 19:45:04 +00:00
wp-lists.min.js Build/Test Tools: Update several `devDependencies`. 2021-06-08 17:15:15 +00:00
wp-pointer.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-02-16 20:25:03 +00:00
wp-pointer.min.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-02-16 20:25:03 +00:00
wp-sanitize.js
wp-sanitize.min.js Build/Test Tools: Update some `devDependencies`. 2021-03-18 17:48:23 +00:00
wp-util.js Media: Adapt response shape depending on type of query. 2021-06-20 23:27:01 +00:00
wp-util.min.js Media: Adapt response shape depending on type of query. 2021-06-20 23:27:01 +00:00
wpdialog.js
wpdialog.min.js
wplink.js External Libraries: Further fix jQuery deprecations in WordPress core. 2021-03-18 19:01:03 +00:00
wplink.min.js Build/Test Tools: Update several `devDependencies`. 2021-06-08 17:15:15 +00:00
zxcvbn-async.js
zxcvbn-async.min.js Build/Test Tools: Update NPM dependencies. 2021-02-23 16:45:19 +00:00
zxcvbn.min.js