WordPress/wp-admin/includes
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
..
admin-filters.php Privacy tools: Organize privacy functions into logical files and classes. 2019-05-26 20:50:53 +00:00
admin.php Privacy tools: Organize privacy functions into logical files and classes. 2019-05-26 20:50:53 +00:00
ajax-actions.php Site health: Introduce `view_site_health_checks` capability. 2019-06-10 07:42:52 +00:00
bookmark.php I18n: Improve translators comments [3]. 2018-08-30 13:36:25 +00:00
class-automatic-upgrader-skin.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-bulk-plugin-upgrader-skin.php I18n: Improve translators comments [3]. 2018-08-30 13:36:25 +00:00
class-bulk-theme-upgrader-skin.php I18n: Improve translators comments [3]. 2018-08-30 13:36:25 +00:00
class-bulk-upgrader-skin.php I18N: Use the actual placeholder instead of a number in translator comments if the corresponding string does not use numbered placeholders. 2018-03-11 16:44:34 +00:00
class-core-upgrader.php Upgrade/install: fix verification bugs and scale back signature checks. 2019-04-24 07:44:51 +00:00
class-file-upload-upgrader.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-ftp-pure.php Docs: Correct grammar in PemFTP description. 2019-03-17 01:20:49 +00:00
class-ftp-sockets.php Docs: Correct grammar in PemFTP description. 2019-03-17 01:20:49 +00:00
class-ftp.php Date/Time: Replace all instances of `date()` with `gmdate()`. 2019-05-26 00:12:54 +00:00
class-language-pack-upgrader-skin.php I18n: Improve translators comments [3]. 2018-08-30 13:36:25 +00:00
class-language-pack-upgrader.php I18N: Enable `clear_destination` in upgrader for updating/installing language packs. 2019-01-21 21:13:48 +00:00
class-pclzip.php Filesystem API: Ensure memory limit calculations by PclZip are using integers. 2016-07-19 11:55:30 +00:00
class-plugin-installer-skin.php I18n: Improve translators comments [3]. 2018-08-30 13:36:25 +00:00
class-plugin-upgrader-skin.php Docs: Document many more parameters and properties using typed array notation. 2018-03-22 20:27:32 +00:00
class-plugin-upgrader.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-theme-installer-skin.php I18n: Improve translators comments [3]. 2018-08-30 13:36:25 +00:00
class-theme-upgrader-skin.php I18n: Improve translators comments [3]. 2018-08-30 13:36:25 +00:00
class-theme-upgrader.php I18n: Improve translators comments [3]. 2018-08-30 13:36:25 +00:00
class-walker-category-checklist.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-walker-nav-menu-checklist.php I18n: Improve translators comments [3]. 2018-08-30 13:36:25 +00:00
class-walker-nav-menu-edit.php I18n: Improve translators comments [3]. 2018-08-30 13:36:25 +00:00
class-wp-ajax-upgrader-skin.php Upgrade/Install: Correct operator precedence for an error code in `WP_Ajax_Upgrader_Skin::error()`. 2019-05-31 14:14:52 +00:00
class-wp-automatic-updater.php General: Update support forum links. 2019-05-25 14:24:50 +00:00
class-wp-comments-list-table.php Accessibility: Comments: Improve links and buttons semantics and interaction. 2019-02-20 23:37:50 +00:00
class-wp-community-events.php Docs: Update `@since` versions in Community Events class added in [42726]. 2018-06-28 02:34:04 +00:00
class-wp-debug-data.php I18N: Remove PHP function name from translatable string in `WP_Debug_Data`. 2019-05-24 01:41:52 +00:00
class-wp-filesystem-base.php Docs: Improve documentation for various `WP_Filesystem_Base` methods and extending classes. 2019-04-17 04:13:51 +00:00
class-wp-filesystem-direct.php Date/Time: Replace all instances of `date()` with `gmdate()`. 2019-05-26 00:12:54 +00:00
class-wp-filesystem-ftpext.php Date/Time: Replace all instances of `date()` with `gmdate()`. 2019-05-26 00:12:54 +00:00
class-wp-filesystem-ftpsockets.php Docs: Improve documentation for various `WP_Filesystem_Base` methods and extending classes. 2019-04-17 04:13:51 +00:00
class-wp-filesystem-ssh2.php Date/Time: Replace all instances of `date()` with `gmdate()`. 2019-05-26 00:12:54 +00:00
class-wp-importer.php Import: Avoid counting an uncountable type when reading arguments passed to a script. 2018-03-02 17:17:31 +00:00
class-wp-internal-pointers.php Privacy: Remove privacy feature related admin pointers. 2019-03-04 20:47:50 +00:00
class-wp-links-list-table.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-list-table-compat.php Code is Poetry. 2017-11-30 23:11:00 +00:00
class-wp-list-table.php Coding Standards: Upgrade WPCS to 1.2.1. 2019-01-12 06:41:52 +00:00
class-wp-media-list-table.php Media: Update the media bulk action labels for consistency. 2019-04-08 23:54:52 +00:00
class-wp-ms-sites-list-table.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-ms-themes-list-table.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-ms-users-list-table.php Networks and Sites: Use correct escaping function for classes added via ` ms_user_list_site_class` filter. 2019-04-19 13:51:51 +00:00
class-wp-plugin-install-list-table.php Plugins: Introduce `is_wp_version_compatible()` and `is_php_version_compatible()` for checking compatibility with the current WordPress or PHP version. 2019-04-12 23:56:52 +00:00
class-wp-plugins-list-table.php Plugins: Introduce `is_wp_version_compatible()` and `is_php_version_compatible()` for checking compatibility with the current WordPress or PHP version. 2019-04-12 23:56:52 +00:00
class-wp-post-comments-list-table.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
class-wp-posts-list-table.php Post Formats: Remove the post format icons from the post list table. 2019-04-08 06:04:50 +00:00
class-wp-privacy-data-export-requests-list-table.php Privacy: Remove inline CSS within personal data request list tables. 2019-06-04 23:40:55 +00:00
class-wp-privacy-data-removal-requests-list-table.php Privacy tools: remove some left-over code and fix inline comment. 2019-06-08 00:30:51 +00:00
class-wp-privacy-policy-content.php Privacy tools: Organize privacy functions into logical files and classes. 2019-05-26 20:50:53 +00:00
class-wp-privacy-requests-table.php Privacy tools: Organize privacy functions into logical files and classes. 2019-05-26 20:50:53 +00:00
class-wp-screen.php Accessibility: Improve the Screen Options and Help buttons order. 2019-06-08 16:31:53 +00:00
class-wp-site-health-auto-updates.php Administration: Add missing filter documentation for Site Health auto update tests. 2019-05-29 13:59:51 +00:00
class-wp-site-health.php Site Health: In PHP modules test description, move the space before the screen reader text out from the translatable string. 2019-05-17 11:50:58 +00:00
class-wp-site-icon.php Replace usages of basename() with wp_basename() in order to support multibyte filenames 2019-03-01 20:58:52 +00:00
class-wp-terms-list-table.php Taxonomy: Add `level-n` classes to rows on edit-tags.php. 2019-03-07 03:04:50 +00:00
class-wp-theme-install-list-table.php I18N: Merge duplicate "Try Again" strings. 2019-05-26 14:40:51 +00:00
class-wp-themes-list-table.php Themes: Link to an updated documentation on child themes on developer.wordpress.org, instead of Codex. 2019-04-01 11:55:52 +00:00
class-wp-upgrader-skin.php Upgrade/Install: Add missing opening curly bracket after [44513]. 2019-03-21 18:03:51 +00:00
class-wp-upgrader-skins.php Load: Re-add `class-wp-upgrader-skins.php`. 2016-12-03 03:40:41 +00:00
class-wp-upgrader.php Upgrade/install: fix verification bugs and scale back signature checks. 2019-04-24 07:44:51 +00:00
class-wp-users-list-table.php Users: Allow Super Admins to remove themselves from a site on a Multisite network. 2019-05-25 00:13:53 +00:00
comment.php Code is Poetry. 2017-11-30 23:11:00 +00:00
continents-cities.php I18N: Update list of continents and cities for the timezone selection. 2018-07-18 11:21:25 +00:00
credits.php Code is Poetry. 2017-11-30 23:11:00 +00:00
dashboard.php Administration: Adjust code for "Manage widgets or menus" item on "Welcome to WordPress" panel to avoid an extra space after [42343]. 2019-06-14 00:29:52 +00:00
deprecated.php Privacy tools: Organize privacy functions into logical files and classes. 2019-05-26 20:50:53 +00:00
edit-tag-messages.php Code is Poetry. 2017-11-30 23:11:00 +00:00
export.php Date/Time: Replace all instances of `date()` with `gmdate()`. 2019-05-26 00:12:54 +00:00
file.php Privacy tools: 2019-06-10 23:54:53 +00:00
image-edit.php Accessibility: Improve accessibility of all the media views form controls. 2019-06-07 20:45:02 +00:00
image.php Save progress of intermediate image creation after upload. First run. 2019-06-15 01:02:52 +00:00
import.php Replace usages of basename() with wp_basename() in order to support multibyte filenames 2019-03-01 20:58:52 +00:00
list-table.php Privacy: Remove reinstated `wp-admin/options-privacy.php` from `$_old_files`. 2019-05-27 02:40:53 +00:00
media.php Accessibility: Improve accessibility of all the media views form controls. 2019-06-07 20:45:02 +00:00
menu.php Code is Poetry. 2017-11-30 23:11:00 +00:00
meta-boxes.php I18N: Merge duplicate "Add Comment" strings. 2019-05-26 18:43:52 +00:00
misc.php Privacy tools: Organize privacy functions into logical files and classes. 2019-05-26 20:50:53 +00:00
ms-admin-filters.php Code is Poetry. 2017-11-30 23:11:00 +00:00
ms-deprecated.php I18N: Merge similar strings about allowed space allocation in Multisite. 2019-04-01 12:24:51 +00:00
ms.php Accessibility: Improve settings tables and forms after [45403]. 2019-05-25 15:19:53 +00:00
nav-menu.php Menus: Fix a deprecated call to `get_terms()`. 2019-01-21 23:38:52 +00:00
network.php Accessibility: Improve settings tables and forms after [45403]. 2019-05-25 15:19:53 +00:00
noop.php Code is Poetry. 2017-11-30 23:11:00 +00:00
options.php Accessibility: General Settings: Update custom date/time format previews while typing. 2019-02-20 22:56:50 +00:00
plugin-install.php General: Update support forum links. 2019-05-25 14:24:50 +00:00
plugin.php Privacy tools: Organize privacy functions into logical files and classes. 2019-05-26 20:50:53 +00:00
post.php Date/Time: Replace all instances of `date()` with `gmdate()`. 2019-05-26 00:12:54 +00:00
privacy-tools.php Privacy tools: 2019-06-10 23:54:53 +00:00
revision.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00
schema.php I18N: Move the strings for default user roles to `wp-includes/capabilities.php`, to make the translations available on the front end as well. 2019-03-21 22:23:52 +00:00
screen.php Code is Poetry. 2017-11-30 23:11:00 +00:00
taxonomy.php Docs: Correct and improve various inline documentation. 2018-03-25 19:35:29 +00:00
template.php Accessibility: Make sure layout tables across the admin are correctly linearized. 2019-05-24 21:56:54 +00:00
theme-install.php Docs: Add missing periods to a grab-bag of docblocks. 2019-01-18 01:03:50 +00:00
theme.php General: Update support forum links. 2019-05-25 14:24:50 +00:00
translation-install.php General: Update support forum links. 2019-05-25 14:24:50 +00:00
update-core.php Docs: Add a comment about the reinstated `wp-admin/options-privacy.php`. 2019-05-27 03:03:52 +00:00
update.php Add a Recovery Mode Exit button to the notice. This fixes it in responsive view. 2019-06-13 16:00:52 +00:00
upgrade.php Privacy tools: Organize privacy functions into logical files and classes. 2019-05-26 20:50:53 +00:00
user.php Privacy tools: Organize privacy functions into logical files and classes. 2019-05-26 20:50:53 +00:00
widgets.php Coding Standards: Upgrade WPCS to 1.0.0 2018-08-17 01:51:36 +00:00