Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/01/2024 04:26:18 PM (17 months ago)
Author:
espellcaste
Message:

WPCS: The modified code addresses all Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword and Squiz.Functions.MultiLineFunctionDeclaration.SpaceAfterFunction issues specific to the foreach and function examples.

See #7228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-templates/bp-legacy/buddypress-functions.php

    r13876 r13878  
    186186         * executes for users that aren't logged in. This is for backpat with BP <1.6.
    187187         */
    188         foreach( $actions as $name => $function ) {
     188        foreach ( $actions as $name => $function ) {
    189189            bp_ajax_register_action( $name );
    190190            add_action( 'wp_ajax_'        . $name, $function );
     
    17681768
    17691769        // Add new-message css class.
    1770         add_filter( 'bp_get_the_thread_message_css_class', function( $retval ) {
     1770        add_filter( 'bp_get_the_thread_message_css_class', function ( $retval ) {
    17711771            $retval[] = 'new-message';
    17721772            return $retval;
Note: See TracChangeset for help on using the changeset viewer.