Make WordPress Core

Changeset 17910


Ignore:
Timestamp:
05/13/2011 01:46:08 AM (13 years ago)
Author:
nacin
Message:

Show display names from wp.org profiles on the credits page. see #17384.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/credits.php

    r17909 r17910  
    2828    $locale = get_locale();
    2929
    30     $people = get_site_transient( 'wordpress_credits' );
     30    $results = get_site_transient( 'wordpress_credits' );
    3131
    3232    if ( false === $people ) {
     
    4141            return false;
    4242
    43         set_site_transient( 'wordpress_credits', $people, 604800 ); // One week.
     43        set_site_transient( 'wordpress_credits', $results, 604800 ); // One week.
    4444    }
    4545
     
    4747}
    4848
    49 function _wp_credits_add_profile_link( &$user, $key, $prefix ) {
    50     $user = '<a href="' . esc_url( $prefix . $user ) . '">' . esc_html( $user ) . '</a>';
     49function _wp_credits_add_profile_link( &$display_name, $username, $prefix ) {
     50    $display_name = '<a href="' . esc_url( $prefix . $username ) . '">' . esc_html( $display_name ) . '</a>';
    5151}
    5252
     
    6161$results = wp_credits();
    6262
    63 if ( false === $results ) {
     63if ( ! $results ) {
    6464    echo '<p>' . sprintf( __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
    6565        'http://wordpress.org/about/',
Note: See TracChangeset for help on using the changeset viewer.