WordPress/wp-admin/js
Dominik Schilling 9501efd09f Upgrade/Install: Make some install/update failures more verbose.
An upgrader class is used in conjunction with an upgrader skin class. A skin class handles the logging for an upgrade and informs a user about the progress and failures.
The current Ajax install/update handlers are using the `Automatic_Upgrader_Skin` class because during an Ajax request no output is intended. The difference between Ajax updates and automatic updates is that you will see the full log (usually by email) while Ajax updates focus only on success or failure. For that `Automatic_Upgrader_Skin` has one disadvantage: It doesn't provide a way to retrieve failure messages which were passed through `WP_Upgrader_Skin::error()` by the upgrader.
To solve this issue a new skin `WP_Ajax_Upgrader_Skin` has been introduced. The skin extends `Automatic_Upgrader_Skin` and overrides the `error()` and `feedback()` methods to intercept all errors, which can be a `WP_Error` object or a string.

This updates all four Ajax handler for installing/updating themes/plugins to use the new skin. They now also check the skin for any intercepted errors and pass them on to the user.

Merge of [38199] to the 4.6 branch.

Props flixos90, obenland, ocean90.
Props DrewAPicture, pento for review.
See #37531.
Built from https://develop.svn.wordpress.org/branches/4.6@38200


git-svn-id: http://core.svn.wordpress.org/branches/4.6@38141 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-08-04 22:23:39 +00:00
..
accordion.js Menu customizer: More clearly separate search results from available items. 2015-07-29 23:40:25 +00:00
accordion.min.js Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1 2016-04-15 16:10:37 +00:00
bookmarklet.js Press This: Check the embeds list against all of the oembed providers. 2015-06-18 00:12:26 +00:00
bookmarklet.min.js Editor: autoresize fixes for text 2016-06-01 10:24:30 +00:00
color-picker.js Color Picker: when opening and closing, toggle a `wp-picker-active` class on the wrapper. 2015-10-13 01:08:25 +00:00
color-picker.min.js Update grunt-contrib-uglify from ~0.10.0 to ~1.0.1 2016-04-15 16:10:37 +00:00
comment.js Comment status box: Move focus back to Edit link when changing the date. 2015-07-26 02:26:24 +00:00
comment.min.js Comment status box: Move focus back to Edit link when changing the date. 2015-07-26 02:26:24 +00:00
common.js Update/Install: Shiny Updates v2. 2016-06-15 16:37:29 +00:00
common.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
custom-background.js
custom-background.min.js
custom-header.js
customize-controls.js Customize: Use the correct variable when referring to the media frame. 2016-07-04 20:45:28 +00:00
customize-controls.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
customize-nav-menus.js Customize: Improve flow from menu locations to editing a menu. 2016-06-28 23:07:30 +00:00
customize-nav-menus.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
customize-widgets.js Docs: Fix an incorrect `@since` comment. 2016-07-06 23:49:30 +00:00
customize-widgets.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
dashboard.js JS: in event callbacks replace the very outdated `return false` with `preventDefault()`. 2015-10-09 01:27:27 +00:00
dashboard.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
edit-comments.js Comments: Keep comments safe in the Edit Post screen. 2016-04-22 21:43:28 +00:00
edit-comments.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
editor-expand.js Editor: prevent jumping when using the backspace button in the Text editor in Firefox and IE. 2016-06-11 05:15:27 +00:00
editor-expand.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
editor.js TinyMCE: preserve `<script>` and `<style>` tags inside the editor. 2016-07-12 22:09:31 +00:00
editor.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
farbtastic.js
gallery.js JS: in event callbacks replace the very outdated `return false` with `preventDefault()`. 2015-10-09 01:27:27 +00:00
gallery.min.js JS: in event callbacks replace the very outdated `return false` with `preventDefault()`. 2015-10-09 01:27:27 +00:00
image-edit.js Media: Improve form validation errors handling when editing images. 2016-07-05 13:37:29 +00:00
image-edit.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
inline-edit-post.js Quick/Bulk Edit: Remove a no more used jQuery loop for unsupported post formats. 2016-01-21 22:50:25 +00:00
inline-edit-post.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
inline-edit-tax.js Accessibility: make the tab order match the visual order in the Edit terms screens. 2016-05-16 13:02:29 +00:00
inline-edit-tax.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
iris.min.js
language-chooser.js
language-chooser.min.js
link.js
link.min.js
media-gallery.js
media-gallery.min.js
media-upload.js jQuery: Replace the use of the `.size()` method with the `.length` property. 2016-01-13 16:17:27 +00:00
media-upload.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
media.js Multisite: Change `WP_Network` `id` property to an integer. 2016-06-26 14:26:29 +00:00
media.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
nav-menu.js Coding standards after [36510]. 2016-03-10 23:18:26 +00:00
nav-menu.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
password-strength-meter.js Users: Check zxcvbn is defined before calling. 2016-07-01 12:45:29 +00:00
password-strength-meter.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
plugin-install.js Plugins: Use `install_plugins_upload` action to print the upload form. 2016-07-31 18:11:29 +00:00
plugin-install.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
post.js Comments: Keep comments safe in the Edit Post screen. 2016-04-22 21:43:28 +00:00
post.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
postbox.js Editor, editor-expand: adjust the sidebar position when moving a postbox from one column to another. 2016-06-08 22:37:29 +00:00
postbox.min.js Editor, editor-expand: adjust the sidebar position when moving a postbox from one column to another. 2016-06-08 22:37:29 +00:00
press-this.js Accessibility: add missing `alt` attributes to a gaggle of `<img>`s. 2015-11-07 16:12:27 +00:00
press-this.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
revisions.js Spelling: Standardize on "front end"/"back end" (noun) and "front-end"/"back-end" (adjective). 2016-02-25 12:53:27 +00:00
revisions.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
set-post-thumbnail.js Revert a part of [32673] that caused a fatal error with `SCRIPT_DEBUG` disabled. 2015-06-01 04:14:25 +00:00
set-post-thumbnail.min.js Revert a part of [32673] that caused a fatal error with `SCRIPT_DEBUG` disabled. 2015-06-01 04:14:25 +00:00
svg-painter.js
svg-painter.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
tags-box.js Tags: Avoid a double trailing space after tags separator in auto-suggest. 2015-10-20 16:00:30 +00:00
tags-box.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
tags.js Emoji: Instead of having custom hooks for Ajax callbacks, use MutationObserver to re-parse any changed elements in the DOM. 2015-03-12 12:52:26 +00:00
tags.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
theme.js Accessibility: Improve keyboard navigation on the themes browser modal window. 2016-07-17 22:19:30 +00:00
theme.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
updates.js Upgrade/Install: Make some install/update failures more verbose. 2016-08-04 22:23:39 +00:00
updates.min.js Upgrade/Install: Make some install/update failures more verbose. 2016-08-04 22:23:39 +00:00
user-profile.js Users: Check zxcvbn is defined before calling. 2016-07-01 12:45:29 +00:00
user-profile.min.js Build/Test Tools: Add npm-shrinkwrap.json to 4.5. 2016-08-01 19:44:09 +00:00
user-suggest.js
user-suggest.min.js
widgets.js Widgets: add a button to delete all inactive widgets simultaneously for better UX. 2015-10-21 05:23:26 +00:00
widgets.min.js Widgets: add a button to delete all inactive widgets simultaneously for better UX. 2015-10-21 05:23:26 +00:00
word-count.js Editor: word count: better names for types. 2015-07-27 11:19:26 +00:00
word-count.min.js Editor: word count: better names for types. 2015-07-27 11:19:26 +00:00
wp-fullscreen-stub.js Docs: Standardize on 'backward compatibility/compatible' nomenclature in core inline docs. 2016-05-13 18:41:31 +00:00
wp-fullscreen-stub.min.js Editor: 2015-06-01 17:38:29 +00:00
xfn.js
xfn.min.js