Skip to:
Content

bbPress.org


Ignore:
Timestamp:
01/24/2018 01:01:49 AM (8 years ago)
Author:
johnjamesjacoby
Message:

General: user escaped GetText variant where no HTML is ever allowed in strings.

This change brings a few dozen strings up to par with the others, and ensures that strings are escaped on their way into the runtime environment.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/includes/extend/buddypress/notifications.php

    r6400 r6777  
    8787    if ( $action_item_count > 1 ) {
    8888        $filter = 'bbp_multiple_new_subscription_notification';
    89         $text   = sprintf( __( 'You have %d new replies', 'bbpress' ), $action_item_count );
     89        $text   = sprintf( esc_html__( 'You have %d new replies', 'bbpress' ), $action_item_count );
    9090
    9191    // Single
     
    9393        $filter = 'bbp_single_new_subscription_notification';
    9494        $text   = ! empty( $secondary_item_id )
    95             ? sprintf( __( 'You have %d new reply to %2$s from %3$s', 'bbpress' ), $action_item_count, $topic_title, bp_core_get_user_displayname( $secondary_item_id ) )
    96             : sprintf( __( 'You have %d new reply to %s',             'bbpress' ), $action_item_count, $topic_title );
     95            ? sprintf( esc_html__( 'You have %d new reply to %2$s from %3$s', 'bbpress' ), $action_item_count, $topic_title, bp_core_get_user_displayname( $secondary_item_id ) )
     96            : sprintf( esc_html__( 'You have %d new reply to %s',             'bbpress' ), $action_item_count, $topic_title );
    9797    }
    9898
Note: See TracChangeset for help on using the changeset viewer.