Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/29/2024 06:50:42 PM (9 months ago)
Author:
imath
Message:

BP Legacy: improve PHP code standards using WPCS

See #7228 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress/groups/single/group-header.php

    r13437 r13822  
    2121    <?php if ( bp_group_is_visible() ) : ?>
    2222
    23         <h2><?php _e( 'Group Admins', 'buddypress' ); ?></h2>
     23        <h2><?php esc_html_e( 'Group Admins', 'buddypress' ); ?></h2>
    2424
    2525        <?php bp_group_list_admins();
     
    4141            do_action( 'bp_before_group_menu_mods' ); ?>
    4242
    43             <h2><?php _e( 'Group Mods' , 'buddypress' ); ?></h2>
     43            <h2><?php esc_html_e( 'Group Mods' , 'buddypress' ); ?></h2>
    4444
    4545            <?php bp_group_list_mods();
     
    7373        <?php
    7474        /* translators: %s: last activity timestamp (e.g. "Active 1 hour ago") */
    75         printf( __( 'Active %s', 'buddypress' ), bp_get_group_last_active() );
     75        printf( esc_html__( 'Active %s', 'buddypress' ), esc_html( bp_get_group_last_active() ) );
    7676        ?>
    7777    </span>
Note: See TracChangeset for help on using the changeset viewer.