From 51756ce0e1f91ccea415aa25e2070ee0259a5ac1 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 27 Dec 2013 15:11:19 +0000 Subject: [PATCH] Always do an HTTP request on credits.php when running a development version of WordPress. fixes #26727. git-svn-id: https://develop.svn.wordpress.org/trunk@26872 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/credits.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-admin/credits.php b/src/wp-admin/credits.php index 8624af031d..950332057c 100644 --- a/src/wp-admin/credits.php +++ b/src/wp-admin/credits.php @@ -27,6 +27,7 @@ function wp_credits() { $results = get_site_transient( 'wordpress_credits_' . $locale ); if ( ! is_array( $results ) + || false !== strpos( $wp_version, '-' ) || ( isset( $results['data']['version'] ) && strpos( $wp_version, $results['data']['version'] ) !== 0 ) ) { $response = wp_remote_get( "http://api.wordpress.org/core/credits/1.1/?version=$wp_version&locale=$locale" );