WordPress.org

Make WordPress Core

Ticket #48507: 48507.3.diff

File 48507.3.diff, 1009 bytes (added by pbiron, 14 months ago)
  • src/wp-admin/includes/update.php

    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 ) { 
    646646        $requires_php = isset( $response['requires_php'] ) ? $response['requires_php'] : null;
    647647
    648648        $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 );
    650650
    651651        printf(
    652652                '<tr class="plugin-update-tr%s" id="%s" data-slug="%s">' .