Changeset 13818 for trunk/src/bp-core/classes/class-bp-admin.php
- Timestamp:
- 04/28/2024 12:23:47 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-core/classes/class-bp-admin.php (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/classes/class-bp-admin.php
r13789 r13818 803 803 /* translators: %s is the placeholder for the BuddyPress version number. */ 804 804 esc_html__( 'BuddyPress %s', 'buddypress' ), 805 $version805 esc_html( $version ) 806 806 ); ?> 807 807 </h1> … … 821 821 /* Translators: %s is a raising hands emoji. */ 822 822 esc_html__( 'You now have complete control over all BuddyPress-generated URLs %s', 'buddypress' ), 823 // phpcs:ignore WordPress.Security.EscapeOutput 823 824 wp_staticize_emoji( 'đ' ) 824 825 ); … … 891 892 /* Translators: %s is a woman supervillain emoji. */ 892 893 esc_html__( 'Here\'s another benefit of the BP Rewrites API: the new "members only" community visibility level %s', 'buddypress' ), 894 // phpcs:ignore WordPress.Security.EscapeOutput 893 895 wp_staticize_emoji( 'đŠčđ»' ) 894 896 ); … … 930 932 /* Translators: %s is a smiling face with heart-eyes emoji. */ 931 933 esc_html__( 'Many thanks to you for trusting BuddyPress to power your community site %s', 'buddypress' ), 934 // phpcs:ignore WordPress.Security.EscapeOutput 932 935 wp_staticize_emoji( 'đ' ) 933 936 ); … … 943 946 <p> 944 947 <?php 945 printf( 946 /* translators: 1: heart dashicons. 2: BP Credits screen url. 3: number of BuddyPress contributors to this version. */ 947 _n( 'Built with %1$s by <a href="%2$s">%3$d volunteer</a>.', 'Built with %1$s by <a href="%2$s">%3$d volunteers</a>.', 49, 'buddypress' ), 948 '<span class="dashicons dashicons-heart"></span>', 949 esc_url( bp_get_admin_url( 'admin.php?page=bp-credits' ) ), 950 number_format_i18n( 49 ) 948 echo wp_kses( 949 sprintf( 950 /* translators: 1: heart dashicons. 2: BP Credits screen url. 3: number of BuddyPress contributors to this version. */ 951 _n( 'Built with %1$s by <a href="%2$s">%3$d volunteer</a>.', 'Built with %1$s by <a href="%2$s">%3$d volunteers</a>.', 49, 'buddypress' ), 952 '<span class="dashicons dashicons-heart"></span>', 953 esc_url( bp_get_admin_url( 'admin.php?page=bp-credits' ) ), 954 esc_html( number_format_i18n( 49 ) ) 955 ), 956 array( 957 'a' => array( 958 'href' => true, 959 ), 960 'span' => array( 961 'class' => true, 962 ) 963 ) 951 964 ); 952 965 ?> … … 1099 1112 /* translators: %s: BuddyPress version number */ 1100 1113 esc_html__( 'Noteworthy Contributors to %s', 'buddypress' ), 1101 self::display_version()1114 esc_html( self::display_version() ) 1102 1115 ); 1103 1116 ?> … … 1123 1136 /* translators: %s: BuddyPress version number */ 1124 1137 esc_html__( 'All Contributors to BuddyPress %s', 'buddypress' ), 1125 self::display_version()1138 esc_html( self::display_version() ) 1126 1139 ); 1127 1140 ?> … … 1266 1279 1267 1280 if ( is_wp_error( $terms ) || ! $terms ) { 1268 printf( '<span aria-hidden="true">—</span><span class="screen-reader-text">%s</span>', $taxonomy_object->labels->no_terms);1281 printf( '<span aria-hidden="true">—</span><span class="screen-reader-text">%s</span>', esc_html( $taxonomy_object->labels->no_terms ) ); 1269 1282 } else { 1270 1283 $situations = wp_list_pluck( $terms, 'description' ); … … 1272 1285 // Output each situation as a list item. 1273 1286 echo '<ul><li>'; 1274 echo implode( '</li><li>', $situations);1287 echo implode( '</li><li>', array_map( 'esc_html', $situations ) ); 1275 1288 echo '</li></ul>'; 1276 1289 }
Note:
See TracChangeset
for help on using the changeset viewer.