Changeset 42343 for trunk/src/wp-admin/credits.php
- Timestamp:
- 11/30/2017 11:09:33 PM (9 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/credits.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/credits.php
r42157 r42343 40 40 echo '<p class="about-description">'; 41 41 /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */ 42 printf( __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ), 42 printf( 43 __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ), 43 44 'https://wordpress.org/about/', 44 45 __( 'https://make.wordpress.org/' ) … … 67 68 } 68 69 69 if ( ! empty( $group_data['shuffle'] ) ) 70 if ( ! empty( $group_data['shuffle'] ) ) { 70 71 shuffle( $group_data['data'] ); // We were going to sort by ability to pronounce "hierarchical," but that wouldn't be fair to Matt. 72 } 71 73 72 74 switch ( $group_data['type'] ) { 73 case 'list' :75 case 'list': 74 76 array_walk( $group_data['data'], '_wp_credits_add_profile_link', $credits['data']['profiles'] ); 75 77 echo '<p class="wp-credits-list">' . wp_sprintf( '%l.', $group_data['data'] ) . "</p>\n\n"; 76 78 break; 77 case 'libraries' :79 case 'libraries': 78 80 array_walk( $group_data['data'], '_wp_credits_build_object_link' ); 79 81 echo '<p class="wp-credits-list">' . wp_sprintf( '%l.', $group_data['data'] ) . "</p>\n\n"; … … 86 88 echo '<li class="wp-person" id="wp-person-' . esc_attr( $person_data[2] ) . '">' . "\n\t"; 87 89 echo '<a href="' . esc_url( sprintf( $credits['data']['profiles'], $person_data[2] ) ) . '" class="web">'; 88 $size = 'compact' == $group_data['type'] ? 30 : 60;89 $data = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) );90 $size *= 2;90 $size = 'compact' == $group_data['type'] ? 30 : 60; 91 $data = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) ); 92 $size *= 2; 91 93 $data2x = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) ); 92 94 echo '<img src="' . esc_url( $data['url'] ) . '" srcset="' . esc_url( $data2x['url'] ) . ' 2x" class="gravatar" alt="" />' . "\n"; 93 95 echo esc_html( $person_data[0] ) . "</a>\n\t"; 94 if ( ! $compact ) 96 if ( ! $compact ) { 95 97 echo '<span class="title">' . translate( $person_data[3] ) . "</span>\n"; 98 } 96 99 echo "</li>\n"; 97 100 } 98 101 echo "</ul>\n"; 99 break;102 break; 100 103 } 101 104 } 102 105 103 106 ?> 104 <p class="clear"><?php 107 <p class="clear"> 108 <?php 105 109 /* translators: %s: https://make.wordpress.org/ */ 106 printf( __( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ), 110 printf( 111 __( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ), 107 112 __( 'https://make.wordpress.org/' ) 108 113 ); 109 ?></p> 114 ?> 115 </p> 110 116 111 117 </div>
Note: See TracChangeset
for help on using the changeset viewer.