Upgrade/Install: Revert [59981] pending test failure investigation.
Some checks failed
Cleanup Pull Requests / Clean up pull requests (push) Waiting to run
Coding Standards / PHP coding standards (push) Waiting to run
Coding Standards / JavaScript coding standards (push) Waiting to run
Coding Standards / Slack Notifications (push) Blocked by required conditions
Coding Standards / Failed workflow tasks (push) Blocked by required conditions
End-to-end Tests / Test with SCRIPT_DEBUG disabled (push) Waiting to run
End-to-end Tests / Test with SCRIPT_DEBUG enabled (push) Waiting to run
End-to-end Tests / Slack Notifications (push) Blocked by required conditions
End-to-end Tests / Failed workflow tasks (push) Blocked by required conditions
JavaScript Tests / QUnit Tests (push) Waiting to run
JavaScript Tests / Slack Notifications (push) Blocked by required conditions
JavaScript Tests / Failed workflow tasks (push) Blocked by required conditions
Performance Tests / Determine Matrix (push) Waiting to run
Performance Tests / ${{ matrix.multisite && 'Multisite' || 'Single Site' }} ${{ matrix.memcached && 'Memcached' || 'Default' }} (push) Blocked by required conditions
Performance Tests / Compare (push) Blocked by required conditions
Performance Tests / Slack Notifications (push) Blocked by required conditions
Performance Tests / Failed workflow tasks (push) Blocked by required conditions
PHP Compatibility / Check PHP compatibility (push) Waiting to run
PHP Compatibility / Slack Notifications (push) Blocked by required conditions
PHP Compatibility / Failed workflow tasks (push) Blocked by required conditions
PHPUnit Tests / PHP 7.2 (push) Waiting to run
PHPUnit Tests / PHP 7.3 (push) Waiting to run
PHPUnit Tests / PHP 7.4 (push) Waiting to run
PHPUnit Tests / PHP 8.0 (push) Waiting to run
PHPUnit Tests / PHP 8.1 (push) Waiting to run
PHPUnit Tests / PHP 8.2 (push) Waiting to run
PHPUnit Tests / PHP 8.3 (push) Waiting to run
PHPUnit Tests / PHP 8.4 (push) Waiting to run
PHPUnit Tests / html-api-html5lib-tests (push) Waiting to run
PHPUnit Tests / Slack Notifications (push) Blocked by required conditions
PHPUnit Tests / Failed workflow tasks (push) Blocked by required conditions
Test Build Processes / Core running from build (push) Waiting to run
Test Build Processes / Core running from src (push) Waiting to run
Test Build Processes / Gutenberg running from build (push) Waiting to run
Test Build Processes / Gutenberg running from src (push) Waiting to run
Test Build Processes / Slack Notifications (push) Blocked by required conditions
Test Build Processes / Failed workflow tasks (push) Blocked by required conditions
Test old branches / coding-standards.yml for 4.1 (push) Has been cancelled
Test old branches / javascript-tests.yml for 4.1 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 4.1 (push) Has been cancelled
Test old branches / test-build-processes.yml for 4.1 (push) Has been cancelled
Test old branches / coding-standards.yml for 4.2 (push) Has been cancelled
Test old branches / javascript-tests.yml for 4.2 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 4.2 (push) Has been cancelled
Test old branches / test-build-processes.yml for 4.2 (push) Has been cancelled
Test old branches / coding-standards.yml for 4.3 (push) Has been cancelled
Test old branches / javascript-tests.yml for 4.3 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 4.3 (push) Has been cancelled
Test old branches / test-build-processes.yml for 4.3 (push) Has been cancelled
Test old branches / coding-standards.yml for 4.4 (push) Has been cancelled
Test old branches / javascript-tests.yml for 4.4 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 4.4 (push) Has been cancelled
Test old branches / test-build-processes.yml for 4.4 (push) Has been cancelled
Test old branches / coding-standards.yml for 4.5 (push) Has been cancelled
Test old branches / javascript-tests.yml for 4.5 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 4.5 (push) Has been cancelled
Test old branches / test-build-processes.yml for 4.5 (push) Has been cancelled
Test old branches / coding-standards.yml for 4.6 (push) Has been cancelled
Test old branches / javascript-tests.yml for 4.6 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 4.6 (push) Has been cancelled
Test old branches / test-build-processes.yml for 4.6 (push) Has been cancelled
Test old branches / coding-standards.yml for 4.7 (push) Has been cancelled
Test old branches / javascript-tests.yml for 4.7 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 4.7 (push) Has been cancelled
Test old branches / test-build-processes.yml for 4.7 (push) Has been cancelled
Test old branches / coding-standards.yml for 4.8 (push) Has been cancelled
Test old branches / javascript-tests.yml for 4.8 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 4.8 (push) Has been cancelled
Test old branches / test-build-processes.yml for 4.8 (push) Has been cancelled
Test old branches / coding-standards.yml for 4.9 (push) Has been cancelled
Test old branches / javascript-tests.yml for 4.9 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 4.9 (push) Has been cancelled
Test old branches / test-build-processes.yml for 4.9 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.0 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.0 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.0 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.0 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.1 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.1 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.1 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.1 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.2 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.2 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.2 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.2 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.3 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.3 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.3 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.3 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.4 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.4 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.4 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.4 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.5 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.5 (push) Has been cancelled
Test old branches / php-compatibility.yml for 5.5 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.5 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.5 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.6 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.6 (push) Has been cancelled
Test old branches / php-compatibility.yml for 5.6 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.6 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.6 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.7 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.7 (push) Has been cancelled
Test old branches / php-compatibility.yml for 5.7 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.7 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.7 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.8 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 5.8 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.8 (push) Has been cancelled
Test old branches / php-compatibility.yml for 5.8 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.8 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.8 (push) Has been cancelled
Test old branches / coding-standards.yml for 5.9 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 5.9 (push) Has been cancelled
Test old branches / javascript-tests.yml for 5.9 (push) Has been cancelled
Test old branches / php-compatibility.yml for 5.9 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 5.9 (push) Has been cancelled
Test old branches / test-build-processes.yml for 5.9 (push) Has been cancelled
Test old branches / coding-standards.yml for 6.0 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 6.0 (push) Has been cancelled
Test old branches / javascript-tests.yml for 6.0 (push) Has been cancelled
Test old branches / php-compatibility.yml for 6.0 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 6.0 (push) Has been cancelled
Test old branches / test-build-processes.yml for 6.0 (push) Has been cancelled
Test old branches / coding-standards.yml for 6.1 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 6.1 (push) Has been cancelled
Test old branches / javascript-tests.yml for 6.1 (push) Has been cancelled
Test old branches / php-compatibility.yml for 6.1 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 6.1 (push) Has been cancelled
Test old branches / test-build-processes.yml for 6.1 (push) Has been cancelled
Test old branches / coding-standards.yml for 6.2 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 6.2 (push) Has been cancelled
Test old branches / javascript-tests.yml for 6.2 (push) Has been cancelled
Test old branches / php-compatibility.yml for 6.2 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 6.2 (push) Has been cancelled
Test old branches / test-build-processes.yml for 6.2 (push) Has been cancelled
Test old branches / coding-standards.yml for 6.3 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 6.3 (push) Has been cancelled
Test old branches / javascript-tests.yml for 6.3 (push) Has been cancelled
Test old branches / php-compatibility.yml for 6.3 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 6.3 (push) Has been cancelled
Test old branches / test-build-processes.yml for 6.3 (push) Has been cancelled
Test old branches / coding-standards.yml for 6.4 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 6.4 (push) Has been cancelled
Test old branches / javascript-tests.yml for 6.4 (push) Has been cancelled
Test old branches / performance.yml for 6.4 (push) Has been cancelled
Test old branches / php-compatibility.yml for 6.4 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 6.4 (push) Has been cancelled
Test old branches / test-build-processes.yml for 6.4 (push) Has been cancelled
Test old branches / coding-standards.yml for 6.5 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 6.5 (push) Has been cancelled
Test old branches / javascript-tests.yml for 6.5 (push) Has been cancelled
Test old branches / performance.yml for 6.5 (push) Has been cancelled
Test old branches / php-compatibility.yml for 6.5 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 6.5 (push) Has been cancelled
Test old branches / test-build-processes.yml for 6.5 (push) Has been cancelled
Test old branches / coding-standards.yml for 6.6 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 6.6 (push) Has been cancelled
Test old branches / javascript-tests.yml for 6.6 (push) Has been cancelled
Test old branches / performance.yml for 6.6 (push) Has been cancelled
Test old branches / php-compatibility.yml for 6.6 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 6.6 (push) Has been cancelled
Test old branches / test-build-processes.yml for 6.6 (push) Has been cancelled
Test old branches / coding-standards.yml for 6.7 (push) Has been cancelled
Test old branches / end-to-end-tests.yml for 6.7 (push) Has been cancelled
Test old branches / javascript-tests.yml for 6.7 (push) Has been cancelled
Test old branches / performance.yml for 6.7 (push) Has been cancelled
Test old branches / php-compatibility.yml for 6.7 (push) Has been cancelled
Test old branches / phpunit-tests.yml for 6.7 (push) Has been cancelled
Test old branches / test-build-processes.yml for 6.7 (push) Has been cancelled
Test old branches / Slack Notifications (push) Has been cancelled

See #62718.

git-svn-id: https://develop.svn.wordpress.org/trunk@59982 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov 2025-03-14 14:51:11 +00:00
parent 001a86a7ca
commit 7aae2ea200

View File

@ -1007,17 +1007,9 @@ class WP_Upgrader {
public function maintenance_mode( $enable = false ) {
global $wp_filesystem;
if ( ! function_exists( 'WP_Filesystem' ) ) {
require_once ABSPATH . '/wp-admin/includes/file.php';
}
ob_start();
$credentials = request_filesystem_credentials( '' );
ob_end_clean();
if ( false === $credentials || ! WP_Filesystem( $credentials ) ) {
wp_trigger_error( __FUNCTION__, __( 'Could not access filesystem.' ) );
return;
if ( ! $wp_filesystem ) {
require_once ABSPATH . 'wp-admin/includes/file.php';
WP_Filesystem();
}
$file = $wp_filesystem->abspath() . '.maintenance';