WordPress.org

Make WordPress Core

Ticket #17532: credits_translators.patch

File credits_translators.patch, 1.4 KB (added by dimadin, 7 years ago)
  • wp-admin/credits.php

     
    1212$title = __( 'Credits' );
    1313$parent_file = 'index.php';
    1414
    15 add_action( 'admin_head', 'add_css' );
    16 function add_css() { ?>
     15add_action( 'admin_head', 'wp_credits_add_css' );
     16function wp_credits_add_css() { ?>
    1717<style type="text/css">
    1818h3.wp-people-group, h3.wp-props-group { clear: both; }
    1919ul.wp-people-group { margin-bottom: 50px; }
     
    2727        global $wp_version;
    2828        $locale = get_locale();
    2929
    30         $results = get_site_transient( 'wordpress_credits' );
     30        $results = get_site_transient( 'wordpress_credits_' . $locale );
    3131
    3232        if ( !is_array( $results ) || !isset( $results['people'] ) ) {
    3333                $response = wp_remote_get( "http://api.wordpress.org/core/credits/1.0/?version=$wp_version&locale=$locale" );
     
    4040                if ( !is_array( $results ) )
    4141                        return false;
    4242
    43                 set_site_transient( 'wordpress_credits', $results, 604800 ); // One week.
     43                set_site_transient( 'wordpress_credits_' . $locale, $results, 604800 ); // One week.
    4444        }
    4545
    4646        return $results;
     
    106106__( 'Project Leaders' );
    107107__( 'Extended Core Team' );
    108108__( 'Recent Rockstars' );
     109__( 'Translators' );
    109110__( 'Core Contributors to WordPress %s' );
    110111__( 'Cofounder, Project Lead' );
    111112__( 'Lead Developer' );