Skip to:
Content

BuddyPress.org

Changeset 10590


Ignore:
Timestamp:
02/14/2016 12:13:38 PM (10 years ago)
Author:
djpaul
Message:

Activity, Admin: Avoid using HTML tags in translation strings.

Fixes #6910, props ramiy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/classes/class-bp-activity-list-table.php

    r10546 r10590  
    594594                $actions = apply_filters( 'bp_activity_admin_comment_row_actions', array_filter( $actions ), $item );
    595595
    596                 /* translators: 2: activity admin ui date/time */
    597596                printf(
    598                         __( 'Submitted on <a href="%1$s">%2$s at %3$s</a>', 'buddypress' ),
    599                         bp_activity_get_permalink( $item['id'] ),
    600                         date_i18n( bp_get_option( 'date_format' ), strtotime( $item['date_recorded'] ) ),
    601                         get_date_from_gmt( $item['date_recorded'], bp_get_option( 'time_format' ) )
     597                        /* translators: %s: activity date and time */
     598                        __( 'Submitted on %s', 'buddypress' ),
     599                        sprintf(
     600                                '<a href="%1$s">%2$s</a>',
     601                                bp_activity_get_permalink( $item['id'] ),
     602                                sprintf(
     603                                        /* translators: 1: activity date, 2: activity time */
     604                                        __( '%1$s at %2$s', 'buddypress' ),
     605                                        date_i18n( bp_get_option( 'date_format' ), strtotime( $item['date_recorded'] ) ),
     606                                        get_date_from_gmt( $item['date_recorded'], bp_get_option( 'time_format' ) )
     607                                )
     608                        )
    602609                );
    603610
Note: See TracChangeset for help on using the changeset viewer.