Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/29/2024 06:50:42 PM (18 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/members/single/messages/single.php

    r13196 r13822  
    2929                <?php if ( bp_get_thread_recipients_count() <= 1 ) : ?>
    3030
    31                     <?php _e( 'You are alone in this conversation.', 'buddypress' ); ?>
     31                    <?php esc_html_e( 'You are alone in this conversation.', 'buddypress' ); ?>
    3232
    3333                <?php elseif ( bp_get_max_thread_recipients_to_list() <= bp_get_thread_recipients_count() ) : ?>
     
    3535                    <?php
    3636                    /* translators: %s: message recipients count */
    37                     printf( __( 'Conversation between %s recipients.', 'buddypress' ), number_format_i18n( bp_get_thread_recipients_count() ) );
     37                    printf( esc_html__( 'Conversation between %s recipients.', 'buddypress' ), esc_html( number_format_i18n( bp_get_thread_recipients_count() ) ) );
    3838                    ?>
    3939
     
    4141
    4242                    <?php
    43                     /* translators: %s: message recipients list */
    44                     printf( __( 'Conversation between %s.', 'buddypress' ), bp_get_thread_recipients_list() );
     43                    printf(
     44                        /* translators: %s: message recipients list */
     45                        esc_html__( 'Conversation between %s.', 'buddypress' ),
     46                        // phpcs:ignore WordPress.Security.EscapeOutput
     47                        bp_get_thread_recipients_list()
     48                    );
    4549                    ?>
    4650
     
    112116                        <?php bp_loggedin_user_avatar( 'type=thumb&height=30&width=30' ); ?>
    113117
    114                         <strong><?php _e( 'Send a Reply', 'buddypress' ); ?></strong>
     118                        <strong><?php esc_html_e( 'Send a Reply', 'buddypress' ); ?></strong>
    115119                    </div>
    116120
     
    133137                    do_action( 'bp_before_message_reply_box' ); ?>
    134138
    135                     <label for="message_content" class="bp-screen-reader-text"><?php
    136                         /* translators: accessibility text */
    137                         _e( 'Reply to Message', 'buddypress' );
    138                     ?></label>
     139                    <label for="message_content" class="bp-screen-reader-text">
     140                        <?php
     141                            /* translators: accessibility text */
     142                            esc_html_e( 'Reply to Message', 'buddypress' );
     143                        ?>
     144                    </label>
    139145                    <textarea name="content" id="message_content" rows="15" cols="40"></textarea>
    140146
Note: See TracChangeset for help on using the changeset viewer.