Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/24/2021 04:16:17 AM (5 years ago)
Author:
espellcaste
Message:

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

Also, adding several minor PHP changes.

See #8553

File:
1 edited

Legend:

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

    r11381 r13092  
    44 *
    55 * @package BuddyPress
    6  * @subpackage Friends
     6 * @subpackage FriendsWidgets
    77 * @since 1.9.0
    88 */
    … …  
    2828        }
    2929
    30         add_action( 'widgets_init', function() { register_widget( 'BP_Core_Friends_Widget' ); } );
     30        add_action(
     31                'widgets_init',
     32                function() {
     33                        register_widget( 'BP_Core_Friends_Widget' );
     34                }
     35        );
    3136}
    3237add_action( 'bp_register_widgets', 'bp_friends_register_widgets' );
    … …  
    8792        <?php else: ?>
    8893                <?php echo "-1[[SPLIT]]<li>"; ?>
    89                 <?php _e( 'There were no members found, please try another filter.', 'buddypress' ); ?>
     94                <?php esc_html_e( 'There were no members found, please try another filter.', 'buddypress' ); ?>
    9095                <?php echo "</li>"; ?>
    9196        <?php endif;
Note: See TracChangeset for help on using the changeset viewer.