Always do an HTTP request on credits.php when running a development version of WordPress.

fixes #26727.

Built from https://develop.svn.wordpress.org/trunk@26872


git-svn-id: http://core.svn.wordpress.org/trunk@26757 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-12-27 15:12:11 +00:00
parent cdba99d3b3
commit 731933638d
1 changed files with 1 additions and 0 deletions

View File

@ -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" );