Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
10/13/2015 06:13:01 PM (9 years ago)
Author:
boonebgorges
Message:

Avoid using HTML in strings in bp-activity-admin.php.

Props ramiy.
See #6660.

File:
1 edited

Legend:

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

    r10261 r10266  
    700700
    701701        <?php else : ?>
    702             <p><?php printf( __( 'No activity found with this ID. <a href="%s">Go back and try again</a>.', 'buddypress' ), esc_url( bp_get_admin_url( 'admin.php?page=bp-activity' ) ) ); ?></p>
     702            <p>
     703                <?php _e( 'No activity found with this ID.', 'buddypress' ); ?>
     704                <a href="<?php echo esc_url( bp_get_admin_url( 'admin.php?page=bp-activity' ) ); ?>"><?php _e( 'Go back and try again.', 'buddypress' ); ?></a>
     705            </p>
    703706        <?php endif; ?>
    704707
     
    16501653        $activity_permalink = '';
    16511654        if ( ! $item['is_spam'] ) {
    1652             $activity_permalink = sprintf( __( '<a href="%1$s" class="comments-view-item-link">View Activity</a>', 'buddypress' ), bp_activity_get_permalink( $item['id'], (object) $item ) );
     1655            $activity_permalink = '<a href="' . bp_activity_get_permalink( $item['id'], (object) $item ) . '" class="comments-view-item-link">' . __( 'View Activity', 'buddypress' ) . '</a>';
    16531656        }
    16541657
Note: See TracChangeset for help on using the changeset viewer.