WordPress.org

Make WordPress Core

Changeset 20909


Ignore:
Timestamp:
05/25/12 18:52:13 (23 months ago)
Author:
nacin
Message:

Skip cached credits if version number doesn't match. props duck_. fixes #20270.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/credits.php

    r19712 r20909  
    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 
Note: See TracChangeset for help on using the changeset viewer.