Changeset 13818 for trunk/src/bp-core/admin/bp-core-admin-functions.php
- Timestamp:
- 04/28/2024 12:23:47 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/admin/bp-core-admin-functions.php
r13772 r13818 116 116 printf( 117 117 // Translators: 1: is the url to the BP Components settings screen. 2: is the url to the xProfile administration screen. 118 __( 'Components, Pages, Settings, and Forums, have been moved to <a href="%1$s">Settings > BuddyPress</a>. Profile Fields has been moved into the <a href="%2$s">Users</a> menu.', 'buddypress' ),118 esc_html__( 'Components, Pages, Settings, and Forums, have been moved to <a href="%1$s">Settings > BuddyPress</a>. Profile Fields has been moved into the <a href="%2$s">Users</a> menu.', 'buddypress' ), 119 119 esc_url( $settings_url ), 120 bp_get_admin_url( 'users.php?page=bp-profile-setup')120 esc_url( bp_get_admin_url( 'users.php?page=bp-profile-setup' ) ) 121 121 ); 122 122 ?> … … 161 161 162 162 foreach ( $notices as $notice ) { 163 printf( '<p>%s</p>', $notice['message'] ); 163 printf( 164 '<p>%s</p>', 165 wp_kses( 166 $notice['message'], 167 array( 168 'strong' => true, 169 'code' => true, 170 'a' => array( 171 'href' => true, 172 ), 173 ) 174 ) 175 ); 164 176 } 165 177 … … 423 435 <?php foreach ( $bp->admin->nav_tabs as $nav_tab ) : ?> 424 436 425 <?php echo $nav_tab; ?> 437 <?php 438 echo wp_kses( 439 $nav_tab, 440 array( 441 'a' => array( 442 'href' => true, 443 'class' => true 444 ), 445 ) 446 ); 447 ?> 426 448 427 449 <?php endforeach; ?> … … 472 494 } 473 495 496 // phpcs:ignore WordPress.Security.EscapeOutput 474 497 echo implode( "\n", $tabs_html ); 498 475 499 /** 476 500 * Fires after the output of tabs for the admin area. … … 651 675 _doing_it_wrong( 652 676 'bp_core_admin_tabs()', 653 __( 'BuddyPress Settings and Tools Screens are now using a new tabbed header. Please use `bp_core_admin_tabbed_screen_header()` instead of bp_core_admin_tabs() to output tabs.', 'buddypress' ),677 esc_html__( 'BuddyPress Settings and Tools Screens are now using a new tabbed header. Please use `bp_core_admin_tabbed_screen_header()` instead of bp_core_admin_tabs() to output tabs.', 'buddypress' ), 654 678 '10.0.0' 655 679 ); … … 1194 1218 } 1195 1219 1220 // phpcs:ignore WordPress.Security.EscapeOutput 1196 1221 echo preg_replace( '/\<div(\sclass=\".*\"\s|\s)id=\"tabs-panel-posttype-bp_nav_menu_item-search\"[^>]*>(.*?)\<\/div\>/s', $all_bp_tabs, $output ); 1197 1222 } … … 1275 1300 1276 1301 $tax_name = esc_attr( $r['taxonomy'] ); 1302 1303 // phpcs:disable WordPress.Security.EscapeOutput 1277 1304 ?> 1278 1305 <div id="taxonomy-<?php echo $tax_name; ?>" class="categorydiv"> … … 1298 1325 </div> 1299 1326 <?php 1327 // phpcs:enable 1300 1328 } 1301 1329 … … 1327 1355 <?php 1328 1356 /* translators: accessibility text */ 1329 _e( 'Plain text email content', 'buddypress' );1357 esc_html_e( 'Plain text email content', 'buddypress' ); 1330 1358 ?> 1331 </label><textarea rows="5" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea> 1332 1333 <p><?php _e( 'Most email clients support HTML email. However, some people prefer to receive plain text email. Enter a plain text alternative version of your email here.', 'buddypress' ); ?></p> 1359 </label> 1360 <textarea rows="5" cols="40" name="excerpt" id="excerpt"><?php 1361 // phpcs:ignore WordPress.Security.EscapeOutput 1362 echo $post->post_excerpt; ?> 1363 </textarea> 1364 1365 <p><?php esc_html_e( 'Most email clients support HTML email. However, some people prefer to receive plain text email. Enter a plain text alternative version of your email here.', 'buddypress' ); ?></p> 1334 1366 1335 1367 <?php … … 1608 1640 <a class="bp-welcome-panel-close bp-is-dismissible" href="#" data-notice_id="<?php echo esc_attr( $notification->id ); ?>" aria-label="<?php esc_attr_e( 'Dismiss the notification', 'buddypress' ); ?>"><?php esc_html_e( 'Dismiss', 'buddypress' ); ?></a> 1609 1641 <div class="bp-welcome-panel-content"> 1610 <h2><span class="bp-version"><?php echo number_format_i18n( $notification->version, 1); ?></span> <?php echo esc_html( $notification->title ); ?></h2>1642 <h2><span class="bp-version"><?php echo esc_html( number_format_i18n( $notification->version, 1 ) ); ?></span> <?php echo esc_html( $notification->title ); ?></h2> 1611 1643 <p class="about-description"> 1612 1644 <?php echo wp_kses( $notification->content, array( 'a' => array( 'href' => true ), 'br' => array(), 'strong' => array() ) ); ?>
Note: See TracChangeset
for help on using the changeset viewer.