Changeset 17910
- Timestamp:
- 05/13/2011 01:46:08 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/credits.php
r17909 r17910 28 28 $locale = get_locale(); 29 29 30 $ people= get_site_transient( 'wordpress_credits' );30 $results = get_site_transient( 'wordpress_credits' ); 31 31 32 32 if ( false === $people ) { … … 41 41 return false; 42 42 43 set_site_transient( 'wordpress_credits', $ people, 604800 ); // One week.43 set_site_transient( 'wordpress_credits', $results, 604800 ); // One week. 44 44 } 45 45 … … 47 47 } 48 48 49 function _wp_credits_add_profile_link( &$ user, $key, $prefix ) {50 $ user = '<a href="' . esc_url( $prefix . $user ) . '">' . esc_html( $user) . '</a>';49 function _wp_credits_add_profile_link( &$display_name, $username, $prefix ) { 50 $display_name = '<a href="' . esc_url( $prefix . $username ) . '">' . esc_html( $display_name ) . '</a>'; 51 51 } 52 52 … … 61 61 $results = wp_credits(); 62 62 63 if ( false ===$results ) {63 if ( ! $results ) { 64 64 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>.' ), 65 65 'http://wordpress.org/about/',
Note: See TracChangeset
for help on using the changeset viewer.