WordPress.org

Make WordPress Core

Ticket #20270: 20270.diff

File 20270.diff, 650 bytes (added by duck_, 2 years ago)
  • wp-admin/credits.php

     
    1717 
    1818        $results = get_site_transient( 'wordpress_credits_' . $locale ); 
    1919 
    20         if ( ! is_array( $results ) ) { 
     20        if ( ! is_array( $results ) 
     21                || ( isset( $results['data']['version'] ) && strpos( $wp_version, $results['data']['version'] ) !== 0 ) 
     22        ) { 
    2123                $response = wp_remote_get( "http://api.wordpress.org/core/credits/1.0/?version=$wp_version&locale=$locale" ); 
    2224 
    2325                if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) )