WordPress/wp-admin
Andrew Ozz 05302bd054 Save progress of intermediate image creation after upload. First run.
- Introduces `wp_get_missing_image_subsizes()` and `wp_update_image_subsizes()` to generate image sub-sizes that are missing or were not created after the upload.
- Adds a way to display errors that happened while creating sub-sizes.
- Introduces `wp_create_image_subsizes()` intended for use after an image was uploaded. It saves/updates the image metadata immediately after each sub-size is created. This fixes the (long standing) problem when some of the sub-size image files were created but there was a timeout or an error and the metadata was not saved. Until now such uploads were considered "failed" which usually resulted in the user trying to upload the same image again, creating even more "orphan" image files.

Note that the patch also includes some unrelated WPCS fixes.

Props mikeschroder, azaozz.
See #40439.
Built from https://develop.svn.wordpress.org/trunk@45538


git-svn-id: http://core.svn.wordpress.org/trunk@45349 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2019-06-15 01:02:52 +00:00
..
css Accessibility: Improve focus management in the Media Views. 2019-06-12 21:03:52 +00:00
images Build: Minify images 2019-02-25 15:21:52 +00:00
includes Save progress of intermediate image creation after upload. First run. 2019-06-15 01:02:52 +00:00
js Privacy: Remove inline CSS within personal data request list tables. 2019-06-04 23:40:55 +00:00
maint Accessibility: Remove negative tabindex from the login, install, and setup pages header. 2019-01-10 17:21:52 +00:00
network Accessibility: Improve settings tables and forms after [45403]. 2019-05-25 15:19:53 +00:00
user Code is Poetry. 2017-11-30 23:11:00 +00:00
about.php I18N: Merge duplicate "authenticity could not be verified" strings, fix comma placement on About page. 2019-06-10 14:14:51 +00:00
admin-ajax.php Site health: Load the "Info" tab immediately and notify the user while gathering site data. Changes the Info tab to work similarly to the Status tab: it does separate request to fetch the directories sizes and doesn't "block" the loading of the page. 2019-04-12 19:24:51 +00:00
admin-footer.php Code is Poetry. 2017-11-30 23:11:00 +00:00
admin-functions.php Code is Poetry. 2017-11-30 23:11:00 +00:00
admin-header.php Administration: Move “Recovery Mode” to the beginning of the document title. 2019-04-12 19:05:51 +00:00
admin-post.php Admin: Use is_user_logged_in() instead of wp_validate_auth_cookie() in admin-post.php. 2019-01-16 05:41:50 +00:00
admin.php I18N: Use consistent error messages when importing or exporting content. 2019-05-26 18:09:52 +00:00
async-upload.php Docs: Fix a few minor inline documentation typos in a variety of files and contexts. 2018-12-19 07:42:49 +00:00
comment.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
credits.php Privacy tools: restore privacy.php to its "proper" use to output the Privacy tab on the About screen, see [42814]. Then add the Privacy tab updates from freedoms.php. 2019-05-26 22:57:52 +00:00
custom-background.php Accessibility: Fix the headings hierarchy in the legacy Custom Background and Custom Header pages. 2019-05-25 13:32:53 +00:00
custom-header.php Accessibility: Fix the headings hierarchy in the legacy Custom Background and Custom Header pages. 2019-05-25 13:32:53 +00:00
customize.php General: Further improve error messages following [42648]. 2018-02-19 02:13:32 +00:00
edit-comments.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
edit-form-advanced.php I18N: Merge similar strings in Edit Media help tabs. 2019-05-26 15:38:53 +00:00
edit-form-blocks.php Editor: In edit-form-blocks.php, check the result of wp_set_post_lock(), which may return false and cause a warning when passed to implode(). 2019-05-25 14:35:52 +00:00
edit-form-comment.php Accessibility: Improve settings tables and forms after [45403]. 2019-05-25 15:19:53 +00:00
edit-link-form.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
edit-tag-form.php Accessibility: Make sure layout tables across the admin are correctly linearized. 2019-05-24 21:56:54 +00:00
edit-tags.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
edit.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
erase-personal-data.php Privacy tools: remove some left-over code and fix inline comment. 2019-06-08 00:30:51 +00:00
export-personal-data.php Privacy tools: remove some left-over code and fix inline comment. 2019-06-08 00:30:51 +00:00
export.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
freedoms.php Fix typo in [45451] and move the redirect to the proper location. 2019-05-26 23:21:51 +00:00
import.php I18N: Use consistent error messages when importing or exporting content. 2019-05-26 18:09:52 +00:00
index.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
install-helper.php Code is Poetry. 2017-11-30 23:11:00 +00:00
install.php Accessibility: Make sure layout tables across the admin are correctly linearized. 2019-05-24 21:56:54 +00:00
link-add.php Code is Poetry. 2017-11-30 23:11:00 +00:00
link-manager.php I18N: Make punctuation in some wp-admin strings more consistent. 2019-05-23 01:12:53 +00:00
link-parse-opml.php Code is Poetry. 2017-11-30 23:11:00 +00:00
link.php Code is Poetry. 2017-11-30 23:11:00 +00:00
load-scripts.php Script loader: prevent sorting of the load array in the query string when passing the script handles to load-scripts.php and load-styles.php. 2019-05-28 02:43:55 +00:00
load-styles.php Script loader: prevent sorting of the load array in the query string when passing the script handles to load-scripts.php and load-styles.php. 2019-05-28 02:43:55 +00:00
media-new.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
media-upload.php General: Further improve error messages following [42648]. 2018-02-19 02:13:32 +00:00
media.php I18N: Merge similar strings in Edit Media help tabs. 2019-05-26 15:38:53 +00:00
menu-header.php Docs: Fix a few minor inline documentation typos in a variety of files and contexts. 2018-12-19 07:42:49 +00:00
menu.php Site health: Introduce view_site_health_checks capability. 2019-06-10 07:42:52 +00:00
moderation.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-admin.php
ms-delete-site.php I18N: Use a complete translatable string for the "Delete My Site" email subject. 2019-05-23 22:15:54 +00:00
ms-edit.php
ms-options.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-sites.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-themes.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-upgrade-network.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-users.php Code is Poetry. 2017-11-30 23:11:00 +00:00
my-sites.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
nav-menus.php Accessibility: Add aria-current to the links in the <nav> elements introduced in [44905]. 2019-05-09 20:58:54 +00:00
network.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
options-discussion.php Accessibility: Improve settings tables and forms after [45403]. 2019-05-25 15:19:53 +00:00
options-general.php Accessibility: Make sure layout tables across the admin are correctly linearized. 2019-05-24 21:56:54 +00:00
options-head.php Code is Poetry. 2017-11-30 23:11:00 +00:00
options-media.php Accessibility: Make sure layout tables across the admin are correctly linearized. 2019-05-24 21:56:54 +00:00
options-permalink.php Date/Time: Replace all instances of date() with gmdate(). 2019-05-26 00:12:54 +00:00
options-privacy.php Privacy: Remove reinstated wp-admin/options-privacy.php from $_old_files. 2019-05-27 02:40:53 +00:00
options-reading.php Accessibility: Make sure layout tables across the admin are correctly linearized. 2019-05-24 21:56:54 +00:00
options-writing.php Accessibility: Make sure layout tables across the admin are correctly linearized. 2019-05-24 21:56:54 +00:00
options.php I18N: Merge duplicate "not allowed to manage options" strings. 2019-05-26 16:00:52 +00:00
plugin-editor.php Administration: Merge similar "file does not exist" messages in plugin and theme editors. 2019-05-26 12:35:51 +00:00
plugin-install.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
plugins.php I18N: Remove unnecessary markup from plugin action messages, for consistency with the rest of the admin. 2019-05-26 14:36:51 +00:00
post-new.php Administration: Improve the accuracy of is_block_editor(). 2019-04-17 01:56:52 +00:00
post.php Admin: Re-add some validation from [44048] that was accidentally removed in [44165]. 2019-02-07 04:12:51 +00:00
press-this.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
privacy-policy-guide.php Privacy tools: Organize privacy functions into logical files and classes. 2019-05-26 20:50:53 +00:00
privacy.php Privacy tools: restore privacy.php to its "proper" use to output the Privacy tab on the About screen, see [42814]. Then add the Privacy tab updates from freedoms.php. 2019-05-26 22:57:52 +00:00
profile.php Code is Poetry. 2017-11-30 23:11:00 +00:00
revision.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
setup-config.php I18N: Merge duplicate "Try Again" strings. 2019-05-26 14:40:51 +00:00
site-health-info.php Site health: Introduce view_site_health_checks capability. 2019-06-10 07:42:52 +00:00
site-health.php Site health: Introduce view_site_health_checks capability. 2019-06-10 07:42:52 +00:00
term.php General: Further improve error messages following [42648]. 2018-02-19 02:13:32 +00:00
theme-editor.php Administration: Merge similar "file does not exist" messages in plugin and theme editors. 2019-05-26 12:35:51 +00:00
theme-install.php General: Update support forum links. 2019-05-25 14:24:50 +00:00
themes.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
tools.php Privacy: Remove reinstated wp-admin/options-privacy.php from $_old_files. 2019-05-27 02:40:53 +00:00
update-core.php Fix displaying of the "An updated version of WordPress is available." notice when running the latest nightly build. Note that it is still displayed when running a local build or from /src. 2019-06-13 16:43:53 +00:00
update.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
upgrade-functions.php Code is Poetry. 2017-11-30 23:11:00 +00:00
upgrade.php Upgrade/Install: Improve error messages displayed when WordPress update fails due to an incompatible PHP version by linking to the Update PHP support page. 2019-05-17 18:11:51 +00:00
upload.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
user-edit.php Accessibility: Improve settings tables and forms after [45403]. 2019-05-25 15:19:53 +00:00
user-new.php Accessibility: Make sure layout tables across the admin are correctly linearized. 2019-05-24 21:56:54 +00:00
users.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00
widgets.php Help: Update support forum links. 2019-04-08 22:59:56 +00:00