Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/03/2015 04:51:24 PM (11 years ago)
Author:
djpaul
Message:

Groups: properly escape the action status message on the wp-admin management screen.

Props vnd

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-admin.php

    r10391 r10394  
    524524
    525525                if ( ! empty( $error_new ) ) {
    526                         $messages[] = sprintf( __( 'The following users could not be added to the group: %s', 'buddypress' ), '<em>' . implode( ', ', $error_new ) . '</em>' );
     526                        $messages[] = sprintf( __( 'The following users could not be added to the group: %s', 'buddypress' ), '<em>' . esc_html( implode( ', ', $error_new ) ) . '</em>' );
    527527                }
    528528
    529529                if ( ! empty( $success_new ) ) {
    530                         $messages[] = sprintf( __( 'The following users were successfully added to the group: %s', 'buddypress' ), '<em>' . implode( ', ', $success_new ) . '</em>' );
     530                        $messages[] = sprintf( __( 'The following users were successfully added to the group: %s', 'buddypress' ), '<em>' . esc_html( implode( ', ', $success_new ) ) . '</em>' );
    531531                }
    532532
    533533                if ( ! empty( $error_modified ) ) {
    534534                        $error_modified = bp_groups_admin_get_usernames_from_ids( $error_modified );
    535                         $messages[] = sprintf( __( 'An error occurred when trying to modify the following members: %s', 'buddypress' ), '<em>' . implode( ', ', $error_modified ) . '</em>' );
     535                        $messages[] = sprintf( __( 'An error occurred when trying to modify the following members: %s', 'buddypress' ), '<em>' . esc_html( implode( ', ', $error_modified ) ) . '</em>' );
    536536                }
    537537
    538538                if ( ! empty( $success_modified ) ) {
    539539                        $success_modified = bp_groups_admin_get_usernames_from_ids( $success_modified );
    540                         $messages[] = sprintf( __( 'The following members were successfully modified: %s', 'buddypress' ), '<em>' . implode( ', ', $success_modified ) . '</em>' );
     540                        $messages[] = sprintf( __( 'The following members were successfully modified: %s', 'buddypress' ), '<em>' . esc_html( implode( ', ', $success_modified ) ) . '</em>' );
    541541                }
    542542        }
Note: See TracChangeset for help on using the changeset viewer.