From f6b9ae8a6f8f1a662a01675034994b61cebc8ae6 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 30 Jul 2020 11:46:05 +0000 Subject: [PATCH] Themes: Pass correct variable to `is_php_version_compatible()` in `wp_theme_update_row()`. This applies to the Themes screen in Multisite network admin. Follow-up to [48660]. Props pbiron, afragen. Reviewed by peterwilsoncc, SergeyBiryukov. Merges [48689] to the 5.5 branch. Fixes #48507. See #48491. Built from https://develop.svn.wordpress.org/branches/5.5@48690 git-svn-id: http://core.svn.wordpress.org/branches/5.5@48452 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/update.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php index 0641b1e898..e7ebabb8f7 100644 --- a/wp-admin/includes/update.php +++ b/wp-admin/includes/update.php @@ -646,7 +646,7 @@ function wp_theme_update_row( $theme_key, $theme ) { $requires_php = isset( $response['requires_php'] ) ? $response['requires_php'] : null; $compatible_wp = is_wp_version_compatible( $requires_wp ); - $compatible_php = is_php_version_compatible( $compatible_php ); + $compatible_php = is_php_version_compatible( $requires_php ); printf( '' . diff --git a/wp-includes/version.php b/wp-includes/version.php index eb9123d1e4..b952f7feee 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-RC1-48687'; +$wp_version = '5.5-RC1-48690'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.