Changeset 17945 for trunk/wp-admin/credits.php
- Timestamp:
- 05/17/2011 04:36:37 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/credits.php
r17942 r17945 30 30 $results = get_site_transient( 'wordpress_credits' ); 31 31 32 if ( false === $results) {32 if ( !is_array( $results ) ) { 33 33 $response = wp_remote_get( "http://api.wordpress.org/core/credits/1.0/?version=$wp_version&locale=$locale" ); 34 34 … … 38 38 $results = unserialize( wp_remote_retrieve_body( $response ) ); 39 39 40 if ( ! $results)40 if ( !is_array( $results ) ) 41 41 return false; 42 42 … … 61 61 $results = wp_credits(); 62 62 63 if ( ! $results) {63 if ( !isset( $results['people'] ) ) { 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/', … … 73 73 $gravatar = is_ssl() ? 'https://secure.gravatar.com/avatar/' : 'http://0.gravatar.com/avatar/'; 74 74 75 foreach ( $results['people'] as $group_slug => $members ) {75 foreach ( (array) $results['people'] as $group_slug => $members ) { 76 76 echo '<h3 class="wp-people-group">' . translate( $results['groups'][ $group_slug ] ) . "</h3>\n"; 77 77 echo '<ul class="wp-people-group" id="wp-people-group-' . $group_slug . '">' . "\n";
Note: See TracChangeset
for help on using the changeset viewer.