Changeset 32845
- Timestamp:
- 06/18/2015 06:35:04 PM (9 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/credits.php
r32654 r32845 110 110 echo '<p class="about-description">' . __( 'WordPress is created by a worldwide team of passionate individuals.' ) . "</p>\n"; 111 111 112 $gravatar = is_ssl() ? 'https://secure.gravatar.com/avatar/' : 'http://0.gravatar.com/avatar/';113 114 112 foreach ( $credits['groups'] as $group_slug => $group_data ) { 115 113 if ( $group_data['name'] ) { … … 145 143 echo '<li class="wp-person" id="wp-person-' . $person_data[2] . '">' . "\n\t"; 146 144 echo '<a href="' . sprintf( $credits['data']['profiles'], $person_data[2] ) . '">'; 147 $size = 'compact' == $group_data['type'] ? '30' : '60'; 148 echo '<img src="' . $gravatar . $person_data[1] . '?s=' . $size . '" srcset="' . $gravatar . $person_data[1] . '?s=' . $size * 2 . ' 2x" class="gravatar" alt="' . esc_attr( $person_data[0] ) . '" /></a>' . "\n\t"; 145 $size = 'compact' == $group_data['type'] ? 30 : 60; 146 $data = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) ); 147 $size *= 2; 148 $data2x = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) ); 149 echo '<img src="' . esc_attr( $data['url'] ) . '" srcset="' . esc_attr( $data2x['url'] ) . ' 2x" class="gravatar" alt="' . esc_attr( $person_data[0] ) . '" /></a>' . "\n\t"; 149 150 echo '<a class="web" href="' . sprintf( $credits['data']['profiles'], $person_data[2] ) . '">' . $person_data[0] . "</a>\n\t"; 150 151 if ( ! $compact ) -
trunk/src/wp-includes/feed.php
r32800 r32845 103 103 if ( $wp_query->have_posts() ) { 104 104 $post_ids = array(); 105 $post_times = array(); 105 106 foreach( $wp_query->posts as $post ) { 106 107 $post_ids[] = $post->ID; -
trunk/src/wp-includes/link-template.php
r32606 r32845 3651 3651 ); 3652 3652 3653 $url = sprintf( 'http://%d.gravatar.com/avatar/%s', $gravatar_server, $email_hash ); 3653 if ( is_ssl() ) { 3654 $url = 'https://secure.gravatar.com/avatar/' . $email_hash; 3655 } else { 3656 $url = sprintf( 'http://%d.gravatar.com/avatar/%s', $gravatar_server, $email_hash ); 3657 } 3654 3658 3655 3659 $url = add_query_arg(
Note: See TracChangeset
for help on using the changeset viewer.