Skip to:
Content

BuddyPress.org


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

    r12082 r13822  
    4040
    4141        <?php if ( bp_is_messages_inbox() ) : ?>
    42             <h2 class="bp-screen-reader-text"><?php
    43                 /* translators: accessibility text */
    44                 _e( 'Messages inbox', 'buddypress' );
    45             ?></h2>
     42            <h2 class="bp-screen-reader-text">
     43                <?php
     44                    /* translators: accessibility text */
     45                    esc_html_e( 'Messages inbox', 'buddypress' );
     46                ?>
     47            </h2>
    4648        <?php elseif ( bp_is_messages_sentbox() ) : ?>
    47             <h2 class="bp-screen-reader-text"><?php
    48                 /* translators: accessibility text */
    49                 _e( 'Sent Messages', 'buddypress' );
    50             ?></h2>
     49            <h2 class="bp-screen-reader-text">
     50                <?php
     51                    /* translators: accessibility text */
     52                    esc_html_e( 'Sent Messages', 'buddypress' );
     53                ?>
     54            </h2>
    5155        <?php endif; ?>
    5256
     
    8589        do_action( 'bp_before_member_messages_content' ); ?>
    8690
    87         <h2 class="bp-screen-reader-text"><?php
    88             /* translators: accessibility text */
    89             _e( 'Sitewide Notices', 'buddypress' );
    90         ?></h2>
     91        <h2 class="bp-screen-reader-text">
     92            <?php
     93                /* translators: accessibility text */
     94                esc_html_e( 'Sitewide Notices', 'buddypress' );
     95            ?>
     96        </h2>
    9197
    9298        <div class="messages">
Note: See TracChangeset for help on using the changeset viewer.