Skip to:
Content

BuddyPress.org

Changeset 10261


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

Activity: avoid using HTML tags in translation strings.

Fixes #6660

Props ramiy

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

Legend:

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

    r10253 r10261  
    741741                    $date  = date_i18n( $datef, strtotime( $item->date_recorded ) );
    742742                    ?>
    743                     <span id="timestamp"><?php printf( __( 'Submitted on: <strong>%1$s</strong>', 'buddypress' ), $date ); ?></span>&nbsp;<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e( 'Edit', 'buddypress' ); ?></a>
     743                    <span id="timestamp"><?php printf( __( 'Submitted on: %s', 'buddypress' ), '<strong>' . $date . '</strong>' ); ?></span>&nbsp;<a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e( 'Edit', 'buddypress' ); ?></a>
    744744
    745745                    <div id='timestampdiv' class='hide-if-js'>
  • trunk/src/bp-activity/bp-activity-akismet.php

    r10253 r10261  
    607607
    608608        echo '<div class="akismet-history"><div>';
    609         printf( _x( '<span>%1$s</span> &mdash; %2$s', 'x hours ago - akismet cleared this item', 'buddypress' ), bp_core_time_since( $history[2] ), esc_html( $history[1] ) );
     609        printf( _x( '%1$s &mdash; %2$s', 'x hours ago - akismet cleared this item', 'buddypress' ), '<span>' . bp_core_time_since( $history[2] ) . '</span>', esc_html( $history[1] ) );
    610610        echo '</div></div>';
    611611    }
Note: See TracChangeset for help on using the changeset viewer.