diff --git a/wp-admin/credits.php b/wp-admin/credits.php index 9527702a04..dcb9d23ce2 100644 --- a/wp-admin/credits.php +++ b/wp-admin/credits.php @@ -27,7 +27,7 @@ function wp_credits() { global $wp_version; $locale = get_locale(); - $people = get_site_transient( 'wordpress_credits' ); + $results = get_site_transient( 'wordpress_credits' ); if ( false === $people ) { $response = wp_remote_get( "http://api.wordpress.org/core/credits/1.0/?version=$wp_version&locale=$locale" ); @@ -40,14 +40,14 @@ function wp_credits() { if ( ! $results ) return false; - set_site_transient( 'wordpress_credits', $people, 604800 ); // One week. + set_site_transient( 'wordpress_credits', $results, 604800 ); // One week. } return $results; } -function _wp_credits_add_profile_link( &$user, $key, $prefix ) { - $user = '' . esc_html( $user ) . ''; +function _wp_credits_add_profile_link( &$display_name, $username, $prefix ) { + $display_name = '' . esc_html( $display_name ) . ''; } include( './admin-header.php' ); @@ -60,7 +60,7 @@ include( './admin-header.php' ); $results = wp_credits(); -if ( false === $results ) { +if ( ! $results ) { echo '
' . sprintf( __( 'WordPress is created by a worldwide team of passionate individuals. Get involved in WordPress.' ), 'http://wordpress.org/about/', 'http://codex.wordpress.org/Contributing_to_WordPress' ) . '
';