From e4e4373924cd0a733e314dfe2f9718f92a0ac473 Mon Sep 17 00:00:00 2001
From: Paul Biron <paul@sparrowhawkcomputing.com>
Date: Wed, 29 Jul 2020 13:00:45 -0600
Subject: [PATCH] Avoid undefined variable warning and pass the correct param
to is_php_version_compatible().
---
src/wp-admin/includes/update.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/wp-admin/includes/update.php b/src/wp-admin/includes/update.php
index 0641b1e898..e7ebabb8f7 100644
a
|
b
|
function wp_theme_update_row( $theme_key, $theme ) { |
646 | 646 | $requires_php = isset( $response['requires_php'] ) ? $response['requires_php'] : null; |
647 | 647 | |
648 | 648 | $compatible_wp = is_wp_version_compatible( $requires_wp ); |
649 | | $compatible_php = is_php_version_compatible( $compatible_php ); |
| 649 | $compatible_php = is_php_version_compatible( $requires_php ); |
650 | 650 | |
651 | 651 | printf( |
652 | 652 | '<tr class="plugin-update-tr%s" id="%s" data-slug="%s">' . |