Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/01/2024 04:26:18 PM (2 years 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-core/deprecated/1.6.php

    r13824 r13878  
    265265
    266266                // For each of the problematic hooks, exit at the very end of execution.
    267                 foreach( $actions as $action ) {
    268                         add_action( 'wp_ajax_' . $action, function() {
     267                foreach ( $actions as $action ) {
     268                        add_action( 'wp_ajax_' . $action, function () {
    269269                                exit;
    270270                        }, 9999 );
    271271
    272                         add_action( 'wp_ajax_nopriv_' . $action, function() {
     272                        add_action( 'wp_ajax_nopriv_' . $action, function () {
    273273                                exit;
    274274                        }, 9999 );
Note: See TracChangeset for help on using the changeset viewer.