From efa1334cd415ba8a1cc459e96f5a48004345ed4f Mon Sep 17 00:00:00 2001 From: John Blackbourn Date: Sun, 9 Mar 2025 15:17:22 +0000 Subject: [PATCH] Upgrade/Install: Adjust the check for missing extensions during an upgrade so it remains compatible with versions of WordPress prior to 5.1. The `WP_Error::has_errors()` method was introduced in WordPress 5.1, so this change uses its internal logic instead to remain compatible with earlier versions. Props swissspidy, joemcgill, desrosj. Fixes #63052 Built from https://develop.svn.wordpress.org/trunk@59956 git-svn-id: http://core.svn.wordpress.org/trunk@59298 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/update-core.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/update-core.php b/wp-admin/includes/update-core.php index 2c05d16188..b249c11275 100644 --- a/wp-admin/includes/update-core.php +++ b/wp-admin/includes/update-core.php @@ -1199,7 +1199,7 @@ function update_core( $from, $to ) { } // Add a warning when required PHP extensions are missing. - if ( $missing_extensions->has_errors() ) { + if ( ! empty( $missing_extensions->errors ) ) { return $missing_extensions; } } diff --git a/wp-includes/version.php b/wp-includes/version.php index c1d5be5684..c2df62ec37 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-beta1-59955'; +$wp_version = '6.8-beta1-59956'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.