Skip to:
Content

BuddyPress.org

Changeset 10262


Ignore:
Timestamp:
10/13/2015 05:20:27 PM (5 years ago)
Author:
djpaul
Message:

Groups: avoid using HTML tags in translation strings.

Fixes #6660

Props ramiy

Location:
trunk/src/bp-groups
Files:
2 edited

Legend:

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

    r10248 r10262  
    526526
    527527        if ( ! empty( $error_new ) ) {
    528             $messages[] = sprintf( __( 'The following users could not be added to the group: <em>%s</em>', 'buddypress' ), implode( ', ', $error_new ) );
     528            $messages[] = sprintf( __( 'The following users could not be added to the group: %s', 'buddypress' ), '<em>' . implode( ', ', $error_new ) . '</em>' );
    529529        }
    530530
    531531        if ( ! empty( $success_new ) ) {
    532             $messages[] = sprintf( __( 'The following users were successfully added to the group: <em>%s</em>', 'buddypress' ), implode( ', ', $success_new ) );
     532            $messages[] = sprintf( __( 'The following users were successfully added to the group: %s', 'buddypress' ), '<em>' . implode( ', ', $success_new ) . '</em>' );
    533533        }
    534534
    535535        if ( ! empty( $error_modified ) ) {
    536536            $error_modified = bp_groups_admin_get_usernames_from_ids( $error_modified );
    537             $messages[] = sprintf( __( 'An error occurred when trying to modify the following members: <em>%s</em>', 'buddypress' ), implode( ', ', $error_modified ) );
     537            $messages[] = sprintf( __( 'An error occurred when trying to modify the following members: %s', 'buddypress' ), '<em>' . implode( ', ', $error_modified ) . '</em>' );
    538538        }
    539539
    540540        if ( ! empty( $success_modified ) ) {
    541541            $success_modified = bp_groups_admin_get_usernames_from_ids( $success_modified );
    542             $messages[] = sprintf( __( 'The following members were successfully modified: <em>%s</em>', 'buddypress' ), implode( ', ', $success_modified ) );
     542            $messages[] = sprintf( __( 'The following members were successfully modified: %s', 'buddypress' ), '<em>' . implode( ', ', $success_modified ) . '</em>' );
    543543        }
    544544    }
  • trunk/src/bp-groups/bp-groups-loader.php

    r10248 r10262  
    562562                 */
    563563                $sub_nav[] = array(
    564                     'name'            => sprintf( _x( 'Members <span>%s</span>', 'My Group screen nav', 'buddypress' ), number_format( $this->current_group->total_member_count ) ),
     564                    'name'            => sprintf( _x( 'Members %s', 'My Group screen nav', 'buddypress' ), '<span>' . number_format( $this->current_group->total_member_count ) . '</span>' ),
    565565                    'slug'            => 'members',
    566566                    'parent_url'      => $group_link,
Note: See TracChangeset for help on using the changeset viewer.