From 689fdc6319118f021ca7308bbf89b204fe995626 Mon Sep 17 00:00:00 2001 From: desrosj Date: Wed, 17 Jun 2020 14:48:07 +0000 Subject: [PATCH] Site Health: Verify PHP version requirements when auto-updating themes. Follow up of [47819]. See #49653. Fixes #50411. Built from https://develop.svn.wordpress.org/trunk@48071 git-svn-id: http://core.svn.wordpress.org/trunk@47838 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-automatic-updater.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-admin/includes/class-wp-automatic-updater.php b/wp-admin/includes/class-wp-automatic-updater.php index a1efdc2bb2..77a4149406 100644 --- a/wp-admin/includes/class-wp-automatic-updater.php +++ b/wp-admin/includes/class-wp-automatic-updater.php @@ -214,8 +214,8 @@ class WP_Automatic_Updater { } } - // If updating a plugin, ensure the minimum PHP version requirements are satisfied. - if ( 'plugin' === $type ) { + // If updating a plugin or theme, ensure the minimum PHP version requirements are satisfied. + if ( in_array( $type, array( 'plugin', 'theme' ), true ) ) { if ( ! empty( $item->requires_php ) && version_compare( phpversion(), $item->requires_php, '<' ) ) { return false; } diff --git a/wp-includes/version.php b/wp-includes/version.php index ab8d242d38..810cb6d717 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-48070'; +$wp_version = '5.5-alpha-48071'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.