Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/24/2024 09:13:11 PM (11 months ago)
Author:
imath
Message:

Friends component: improve PHP code standards using WPCS

See #7228 (trunk)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-friends/bp-friends-notifications.php

    r13503 r13804  
    252252    }
    253253
    254     if ( ! $accept_requests = bp_get_user_meta( bp_displayed_user_id(), 'notification_friends_friendship_accepted', true ) )
    255         $accept_requests = 'yes'; ?>
     254    if ( ! $accept_requests = bp_get_user_meta( bp_displayed_user_id(), 'notification_friends_friendship_accepted', true ) ) {
     255        $accept_requests = 'yes';
     256    }
     257    ?>
    256258
    257259    <table class="notification-settings" id="friends-notification-settings">
     
    259261            <tr>
    260262                <th class="icon"></th>
    261                 <th class="title"><?php _ex( 'Friends', 'Friend settings on notification settings page', 'buddypress' ); ?></th>
     263                <th class="title"><?php echo esc_html_x( 'Friends', 'Friend settings on notification settings page', 'buddypress' ); ?></th>
    262264                <th class="yes"><?php esc_html_e( 'Yes', 'buddypress' ); ?></th>
    263265                <th class="no"><?php esc_html_e( 'No', 'buddypress' ); ?></th>
     
    268270            <tr id="friends-notification-settings-request">
    269271                <td></td>
    270                 <td><?php _ex( 'A member sends you a friendship request', 'Friend settings on notification settings page', 'buddypress' ); ?></td>
     272                <td><?php echo esc_html_x( 'A member sends you a friendship request', 'Friend settings on notification settings page', 'buddypress' ); ?></td>
    271273                <td class="yes"><input type="radio" name="notifications[notification_friends_friendship_request]" id="notification-friends-friendship-request-yes" value="yes" <?php checked( $send_requests, 'yes', true ) ?>/><label for="notification-friends-friendship-request-yes" class="bp-screen-reader-text"><?php
    272274                    /* translators: accessibility text */
     
    280282            <tr id="friends-notification-settings-accepted">
    281283                <td></td>
    282                 <td><?php _ex( 'A member accepts your friendship request', 'Friend settings on notification settings page', 'buddypress' ) ?></td>
     284                <td><?php echo esc_html_x( 'A member accepts your friendship request', 'Friend settings on notification settings page', 'buddypress' ) ?></td>
    283285                <td class="yes"><input type="radio" name="notifications[notification_friends_friendship_accepted]" id="notification-friends-friendship-accepted-yes" value="yes" <?php checked( $accept_requests, 'yes', true ) ?>/><label for="notification-friends-friendship-accepted-yes" class="bp-screen-reader-text"><?php
    284286                    /* translators: accessibility text */
Note: See TracChangeset for help on using the changeset viewer.