Make WordPress Core

Ticket #51892: 51892-2.diff

File 51892-2.diff, 424 bytes (added by afragen, 5 years ago)

test for $cur->version, replacing test for $cur->url

  • wp-admin/includes/update.php

    diff --git a/wp-admin/includes/update.php b/wp-admin/includes/update.php
    index 8c8d8a0747..1d97068425 100644
    a b function core_update_footer( $msg = '' ) { 
    240240                $cur->current = '';
    241241        }
    242242
    243         if ( ! isset( $cur->url ) ) {
    244                 $cur->url = '';
     243        if ( ! isset( $cur->version ) ) {
     244                $cur->version = '';
    245245        }
    246246
    247247        if ( ! isset( $cur->response ) ) {