diff --git src/bp-templates/bp-nouveau/buddypress/members/single/profile/change-avatar.php src/bp-templates/bp-nouveau/buddypress/members/single/profile/change-avatar.php
index fa1b4e1e8..c922ab7c7 100644
|
|
|
15 | 15 | |
16 | 16 | <p class="bp-feedback info"> |
17 | 17 | <span class="bp-icon" aria-hidden="true"></span> |
18 | | <span class="bp-help-text"><?php esc_html_e( 'Your profile photo will be used on your profile and throughout the site. If there is a <a href="https://gravatar.com">Gravatar</a> associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress' ); ?></span> |
| 18 | <span class="bp-help-text"><?php echo bp_nouveau_sanitize_feedback( __( 'Your profile photo will be used on your profile and throughout the site. If there is a <a href="https://gravatar.com">Gravatar</a> associated with your account email we will use that, or you can upload an image from your computer.', 'buddypress' ) ); ?></span> |
19 | 19 | </p> |
20 | 20 | |
21 | 21 | <form action="" method="post" id="avatar-upload-form" class="standard-form" enctype="multipart/form-data"> |
diff --git src/bp-templates/bp-nouveau/includes/functions.php src/bp-templates/bp-nouveau/includes/functions.php
index 711596337..bd710ef49 100644
|
|
function bp_nouveau_set_nav_item_order( $nav = null, $order = array(), $parent_s |
1391 | 1391 | |
1392 | 1392 | return true; |
1393 | 1393 | } |
| 1394 | |
| 1395 | /** |
| 1396 | * Sanitize the feedback output. |
| 1397 | * |
| 1398 | * @since 3.2.0 |
| 1399 | * |
| 1400 | * @param string $text The feedback message. |
| 1401 | * @return string The sanitized feedback message. |
| 1402 | */ |
| 1403 | function bp_nouveau_sanitize_feedback( $text ) { |
| 1404 | foreach ( array( 'wp_kses_data', 'wp_unslash', 'wptexturize', 'convert_smilies', 'convert_chars' ) as $filter ) { |
| 1405 | $text = call_user_func( $filter, $text ); |
| 1406 | } |
| 1407 | |
| 1408 | return $text; |
| 1409 | } |
diff --git src/bp-templates/bp-nouveau/includes/template-tags.php src/bp-templates/bp-nouveau/includes/template-tags.php
index ce2ad93f5..293a235ab 100644
|
|
function bp_nouveau_template_message() { |
203 | 203 | $user_feedback = $bp_nouveau->user_feedback['message']; |
204 | 204 | |
205 | 205 | // @TODO: why is this treated differently? |
206 | | foreach ( array( 'wp_kses_data', 'wp_unslash', 'wptexturize', 'convert_smilies', 'convert_chars' ) as $filter ) { |
207 | | $user_feedback = call_user_func( $filter, $user_feedback ); |
208 | | } |
209 | | |
210 | | return '<p>' . $user_feedback . '</p>'; |
| 206 | return '<p>' . bp_nouveau_sanitize_feedback( $user_feedback ) . '</p>'; |
211 | 207 | |
212 | 208 | } elseif ( ! empty( $bp_nouveau->template_message['message'] ) ) { |
213 | 209 | /** |