Even better poka-yoke on Credits page.
git-svn-id: http://svn.automattic.com/wordpress/trunk@17946 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4eaf5b3ed9
commit
cb62ef2b58
|
@ -29,7 +29,7 @@ function wp_credits() {
|
||||||
|
|
||||||
$results = get_site_transient( 'wordpress_credits' );
|
$results = get_site_transient( 'wordpress_credits' );
|
||||||
|
|
||||||
if ( !is_array( $results ) ) {
|
if ( !is_array( $results ) || isset( $results['people'] ) ) {
|
||||||
$response = wp_remote_get( "http://api.wordpress.org/core/credits/1.0/?version=$wp_version&locale=$locale" );
|
$response = wp_remote_get( "http://api.wordpress.org/core/credits/1.0/?version=$wp_version&locale=$locale" );
|
||||||
|
|
||||||
if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) )
|
if ( is_wp_error( $response ) || 200 != wp_remote_retrieve_response_code( $response ) )
|
||||||
|
|
Loading…
Reference in New Issue