WordPress/wp-admin/includes
Sergey Biryukov 2c0a6fefae Upgrade/Install: Revert a temporary conditional for testing the Rollbacks feature project.
The [https://make.wordpress.org/core/2021/02/19/feature-plugin-rollback-update-failure/ Rollback Update Failure feature project] has been split into two plugins for testing:
 * [https://github.com/afragen/faster-updates Faster Updates] speeds up plugin or theme updates by moving files rather than copying them, thus decreasing the memory usage and reducing the chance of timeouts or running out of disk space during updates.
 * [https://wordpress.org/plugins/rollback-update-failure/ Rollback Update Failure] creates a temporary backup of plugins and themes before updating. This aims to make the update process more reliable and ensure that if a plugin or theme update fails, the previous version can be safely restored.

The current priority of the feature project is to test the new `move_dir()` function, which offers better performance than `copy_dir()`. Instead of copying a directory in a recursive manner file by file from one location to another, `move_dir()` uses the `rename()` PHP function to speed up the process, which is instrumental in updating large plugins without a delay. If the renaming failed, it falls back to the `copy_dir()` WP function.

The `move_dir()` function is self-contained in the Faster Updates plugin and does not require any special hooks in core, so the conditional previously added to `WP_Upgrader::install_package()` to facilitate testing is no longer needed and can be removed.

Follow-up to [53578], [54484], [54643].

Props afragen, costdev, peterwilsoncc.
See #56057, #57375, #57386.
Built from https://develop.svn.wordpress.org/trunk@55055


git-svn-id: http://core.svn.wordpress.org/trunk@54588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2023-01-12 00:19:12 +00:00
..
admin-filters.php Editor: Refresh nones for metaboxes after reauthentication. 2022-09-11 20:46:10 +00:00
admin.php I18N: Always pass `$locale` to `load_textdomain()`. 2022-11-10 19:40:11 +00:00
ajax-actions.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
bookmark.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
class-automatic-upgrader-skin.php Code Modernization: Fix reserved keyword and parameter name mismatches for parent/child classes in `WP_Upgrader_Skin::feedback()`. 2021-09-09 13:48:56 +00:00
class-bulk-plugin-upgrader-skin.php Code Modernization: Explicitly declare all properties in `WP_Ajax_Upgrader_Skin`. 2022-08-29 12:46:10 +00:00
class-bulk-theme-upgrader-skin.php Code Modernization: Explicitly declare all properties in `WP_Ajax_Upgrader_Skin`. 2022-08-29 12:46:10 +00:00
class-bulk-upgrader-skin.php Code Modernization: Fix parameter name mismatches for parent/child classes in `WP_Upgrader_Skin::error()`. 2021-09-09 13:59:56 +00:00
class-core-upgrader.php Administration: Replace "can not" with "cannot" after [53131]. 2022-04-11 11:50:01 +00:00
class-custom-background.php Code Modernization: Add `AllowDynamicProperties` attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-custom-image-header.php Code Modernization: Add `AllowDynamicProperties` attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-file-upload-upgrader.php Code Modernization: Add `AllowDynamicProperties` attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-ftp-pure.php Docs: Update URLs in some `@link` tags and switch them to HTTPS. 2019-11-01 14:57:02 +00:00
class-ftp-sockets.php Administration: Replace contracted verb forms for better consistency. 2022-03-22 16:25:03 +00:00
class-ftp.php Code Modernization: Rename parameters that use reserved keywords in `wp-admin/includes/class-ftp.php`. 2022-03-26 15:28:08 +00:00
class-language-pack-upgrader-skin.php Code Modernization: Fix parameter name mismatches for parent/child classes in `WP_Upgrader_Skin::error()`. 2021-09-09 13:59:56 +00:00
class-language-pack-upgrader.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
class-pclzip.php Filesystem API: Make sure to only call `fread()` on non-empty files in `PclZip::privAddFile()`. 2021-08-29 01:33:58 +00:00
class-plugin-installer-skin.php Code Modernization: Replace `phpversion()` function calls with `PHP_VERSION` constant. 2022-05-20 17:38:14 +00:00
class-plugin-upgrader-skin.php Text Changes: Unify various "Back to..." vs. "Return to..." vs. "Go to..." strings. 2020-11-09 10:53:10 +00:00
class-plugin-upgrader.php Code Modernization: Replace `phpversion()` function calls with `PHP_VERSION` constant. 2022-05-20 17:38:14 +00:00
class-theme-installer-skin.php Code Modernization: Replace `phpversion()` function calls with `PHP_VERSION` constant. 2022-05-20 17:38:14 +00:00
class-theme-upgrader-skin.php Text Changes: Unify various "Back to..." vs. "Return to..." vs. "Go to..." strings. 2020-11-09 10:53:10 +00:00
class-theme-upgrader.php Code Modernization: Replace `phpversion()` function calls with `PHP_VERSION` constant. 2022-05-20 17:38:14 +00:00
class-walker-category-checklist.php Code Modernization: Fix reserved keyword and parameter name mismatches for parent/child classes in `Walker::end_el()`. 2021-09-09 13:03:55 +00:00
class-walker-nav-menu-checklist.php Code Modernization: Fix last parameter name mismatches for parent/child classes in `Walker::start_el()`. 2021-09-09 12:39:59 +00:00
class-walker-nav-menu-edit.php Menus: Use more appropriate escaping functions in class `Walker_Nav_Menu_Edit`. 2022-07-05 08:06:17 +00:00
class-wp-ajax-upgrader-skin.php Code Modernization: Explicitly declare all properties in `WP_Ajax_Upgrader_Skin`. 2022-08-29 12:46:10 +00:00
class-wp-application-passwords-list-table.php Administration: Remove private delegation from list tables. 2022-10-04 03:47:15 +00:00
class-wp-automatic-updater.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
class-wp-comments-list-table.php Administration: Remove private delegation from list tables. 2022-10-04 03:47:15 +00:00
class-wp-community-events.php Administration: Guard against `false` transient key in `get_cached_events()`. 2022-09-27 18:57:13 +00:00
class-wp-debug-data.php Docs: Add missing type for `$_wp_theme_features` in `WP_Debug_Data::debug_data()`. 2022-12-09 12:25:14 +00:00
class-wp-filesystem-base.php Code Modernization: Add `AllowDynamicProperties` attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-filesystem-direct.php Coding Standards: Rename the `$file` parameter to `$path` in some `WP_Filesystem_*` methods. 2022-08-09 11:33:10 +00:00
class-wp-filesystem-ftpext.php Filesystem: Return FTP/FTP Sockets `exists()` methods to a previous state. 2022-11-11 15:55:13 +00:00
class-wp-filesystem-ftpsockets.php Filesystem: Return FTP/FTP Sockets `exists()` methods to a previous state. 2022-11-11 15:55:13 +00:00
class-wp-filesystem-ssh2.php Coding Standards: Rename the `$file` parameter to `$path` in some `WP_Filesystem_*` methods. 2022-08-09 11:33:10 +00:00
class-wp-importer.php Code Modernization: Add `AllowDynamicProperties` attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-internal-pointers.php Code Modernization: Add `AllowDynamicProperties` attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-links-list-table.php Administration: Remove private delegation from list tables. 2022-10-04 03:47:15 +00:00
class-wp-list-table-compat.php Docs: Add missing descriptions for `_WP_List_Table_Compat` methods. 2020-11-14 16:54:08 +00:00
class-wp-list-table.php Administration: Remove private delegation from list tables. 2022-10-04 03:47:15 +00:00
class-wp-media-list-table.php Media: Use featured image if available for attachment as preview instead of icon. 2022-12-06 19:24:19 +00:00
class-wp-ms-sites-list-table.php Administration: Remove private delegation from list tables. 2022-10-04 03:47:15 +00:00
class-wp-ms-themes-list-table.php Administration: Remove private delegation from list tables. 2022-10-04 03:47:15 +00:00
class-wp-ms-users-list-table.php Administration: Remove private delegation from list tables. 2022-10-04 03:47:15 +00:00
class-wp-plugin-install-list-table.php Administration: Remove private delegation from list tables. 2022-10-04 03:47:15 +00:00
class-wp-plugins-list-table.php Plugins: Correctly display spaces in installed plugins search results. 2022-11-29 23:46:11 +00:00
class-wp-post-comments-list-table.php Administration: Remove private delegation from list tables. 2022-10-04 03:47:15 +00:00
class-wp-posts-list-table.php Administration: Remove private delegation from list tables. 2022-10-04 03:47:15 +00:00
class-wp-privacy-data-export-requests-list-table.php Privacy: Fix "Retry" action after a personal data export failure. 2022-03-10 19:22:01 +00:00
class-wp-privacy-data-removal-requests-list-table.php Coding Standards: Fix WPCS issues in [49258]. 2020-10-20 21:20:07 +00:00
class-wp-privacy-policy-content.php Code Modernization: Add `AllowDynamicProperties` attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-privacy-requests-table.php Administration: Add new `get_views_links` method to `WP_List_Table`. 2022-09-19 21:08:10 +00:00
class-wp-screen.php Help/About: Typo correction in Dashboard Screen Options. 2022-10-22 07:05:16 +00:00
class-wp-site-health-auto-updates.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
class-wp-site-health.php Docs: Improve various globals documentation, as per documentation standards. 2022-12-09 11:54:13 +00:00
class-wp-site-icon.php Code Modernization: Add `AllowDynamicProperties` attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-terms-list-table.php Administration: Remove private delegation from list tables. 2022-10-04 03:47:15 +00:00
class-wp-theme-install-list-table.php Administration: Remove private delegation from list tables. 2022-10-04 03:47:15 +00:00
class-wp-themes-list-table.php Administration: Remove private delegation from list tables. 2022-10-04 03:47:15 +00:00
class-wp-upgrader-skin.php Code Modernization: Add `AllowDynamicProperties` attribute to all (parent) classes. 2022-09-12 15:47:14 +00:00
class-wp-upgrader-skins.php Docs: Add missing `@deprecated` tags in the file docblock of some deprecated files. 2019-10-08 17:19:04 +00:00
class-wp-upgrader.php Upgrade/Install: Revert a temporary conditional for testing the Rollbacks feature project. 2023-01-12 00:19:12 +00:00
class-wp-users-list-table.php Administration: Remove private delegation from list tables. 2022-10-04 03:47:15 +00:00
comment.php Docs: Use third-person singular verbs for function descriptions in `wp-admin/includes/comment.php`, as per docblocks standards. 2022-07-20 22:15:10 +00:00
continents-cities.php I18N: Update list of continents and cities for the timezone selection. 2022-09-19 23:24:11 +00:00
credits.php Help/About: Don't output empty `<span>` tags on Credits screen. 2021-10-19 23:09:00 +00:00
dashboard.php Administration: Remove `role="img"` from decorative SVG images. 2022-11-01 11:05:16 +00:00
deprecated.php Docs: Improve various globals documentation, as per documentation standards. 2022-12-09 11:54:13 +00:00
edit-tag-messages.php Docs: Various inline documentation corrections and improvements. 2021-12-07 12:20:02 +00:00
export.php Docs: Improve various globals documentation, as per documentation standards. 2022-12-09 11:54:13 +00:00
file.php Coding Standards: Various brace indentation corrections. 2022-11-26 21:01:17 +00:00
image-edit.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
image.php Media: Revert WebP generation. 2022-09-19 22:53:10 +00:00
import.php Docs: Various docblock improvements in Importer Administration API, as per docs standards. 2022-07-29 09:22:10 +00:00
list-table.php Administration: Remove private delegation from list tables. 2022-10-04 03:47:15 +00:00
media.php Docs: Update docs for `image_sideload_extensions` filter to include `webp` in the list of allowed extensions. 2022-12-17 23:07:16 +00:00
menu.php Coding Standards: Correct the `$items_count` variable in `add_menu_classes()`. 2022-04-17 14:44:07 +00:00
meta-boxes.php Pings/Trackbacks: Remove a mention of the "Page" post type from the Discussion meta box. 2023-01-09 21:32:16 +00:00
misc.php Site health: 2022-09-14 22:19:14 +00:00
ms-admin-filters.php Networks and Sites: Officially remove global terms. 2022-09-20 02:51:09 +00:00
ms-deprecated.php Networks and Sites: Officially remove global terms. 2022-09-20 02:51:09 +00:00
ms.php Docs: Various docblock fixes in Multisite administration functions. 2022-11-13 23:19:12 +00:00
nav-menu.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
network.php Administration: Add labels to read-only form fields. 2022-07-21 09:04:14 +00:00
noop.php Coding Standards: Fix brace indentation in `wp-align/includes/noop.php`. 2022-11-26 09:12:17 +00:00
options.php External Libraries: Further fix jQuery deprecations in WordPress core. 2021-11-30 17:18:01 +00:00
plugin-install.php Coding standards: Properly escape URLs returned by `self_admin_url()` calls. 2022-08-05 06:12:10 +00:00
plugin.php Docs: Remove code tags from WordPress function names within inline documentation. 2022-08-11 13:55:08 +00:00
post.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
privacy-tools.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
revision.php Revisions: Use `update_post_author_caches` in `wp_prepare_revisions_for_js` function. 2022-12-06 13:42:13 +00:00
schema.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
screen.php Coding Standards: Use strict comparison in `wp-admin/includes/screen.php`. 2021-05-09 20:27:02 +00:00
taxonomy.php Docs: Use third-person singular verbs for function descriptions in the Taxonomy Administration API. 2022-06-16 23:39:08 +00:00
template.php Options, Meta APIs: Correct the documented return type for `get_settings_errors()`. 2022-12-13 16:39:11 +00:00
theme-install.php Coding standards: Properly escape URLs returned by `self_admin_url()` calls. 2022-08-05 06:00:09 +00:00
theme.php Text Changes: Update `@since` mentions for [54786] changes. 2022-11-10 12:10:11 +00:00
translation-install.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
update-core.php External Libraries: Update Requests library to version 2.0.0. 2022-12-15 21:32:17 +00:00
update.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
upgrade.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
user.php Coding Standards: Always use parentheses when instantiating an object. 2022-11-29 15:51:14 +00:00
widgets.php Docs: Capitalize "ID", when referring to a widget ID or sidebar ID, in a more consistent way. 2021-12-13 10:21:07 +00:00