Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/26/2021 12:53:27 AM (3 years ago)
Author:
espellcaste
Message:

Making PHPDoc Improvements to the BP Messages (component) files.

Also, adding several minor PHP changes.

See #8553

File:
1 edited

Legend:

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

    r13035 r13096  
    120120        );
    121121
    122     // Custom notification action for the Messages component
     122    // Custom notification action for the Messages component.
    123123    } else {
    124124        if ( 'string' === $format ) {
     
    127127            $retval = array(
    128128                'text' => $text,
    129                 'link' => $link
     129                'link' => $link,
    130130            );
    131131        }
     
    216216 *
    217217 * @since 1.9.0
     218 *
     219 * @global BP_Messages_Thread_Template $thread_template
    218220 */
    219221function bp_messages_screen_conversation_mark_notifications() {
     
    309311            <tr>
    310312                <th class="icon"></th>
    311                 <th class="title"><?php _e( 'Messages', 'buddypress' ) ?></th>
    312                 <th class="yes"><?php _e( 'Yes', 'buddypress' ) ?></th>
    313                 <th class="no"><?php _e( 'No', 'buddypress' )?></th>
     313                <th class="title"><?php esc_html_e( 'Messages', 'buddypress' ); ?></th>
     314                <th class="yes"><?php esc_html_e( 'Yes', 'buddypress' ); ?></th>
     315                <th class="no"><?php esc_html_e( 'No', 'buddypress' ); ?></th>
    314316            </tr>
    315317        </thead>
     
    318320            <tr id="messages-notification-settings-new-message">
    319321                <td></td>
    320                 <td><?php _e( 'A member sends you a new message', 'buddypress' ) ?></td>
     322                <td><?php esc_html_e( 'A member sends you a new message', 'buddypress' ); ?></td>
    321323                <td class="yes"><input type="radio" name="notifications[notification_messages_new_message]" id="notification-messages-new-messages-yes" value="yes" <?php checked( $new_messages, 'yes', true ) ?>/><label for="notification-messages-new-messages-yes" class="bp-screen-reader-text"><?php
    322324                    /* translators: accessibility text */
    323                     _e( 'Yes, send email', 'buddypress' );
     325                    esc_html_e( 'Yes, send email', 'buddypress' );
    324326                ?></label></td>
    325327                <td class="no"><input type="radio" name="notifications[notification_messages_new_message]" id="notification-messages-new-messages-no" value="no" <?php checked( $new_messages, 'no', true ) ?>/><label for="notification-messages-new-messages-no" class="bp-screen-reader-text"><?php
    326328                    /* translators: accessibility text */
    327                     _e( 'No, do not send email', 'buddypress' );
     329                    esc_html_e( 'No, do not send email', 'buddypress' );
    328330                ?></label></td>
    329331            </tr>
Note: See TracChangeset for help on using the changeset viewer.