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/admin/bp-core-admin-settings.php

    r13870 r13878  
    432432                // in the $_POST array when unchecked, we loop through the registered settings.
    433433                if ( isset( $wp_settings_fields['buddypress'] ) ) {
    434                         foreach( (array) $wp_settings_fields['buddypress'] as $section => $settings ) {
    435                                 foreach( $settings as $setting_name => $setting ) {
     434                        foreach ( (array) $wp_settings_fields['buddypress'] as $section => $settings ) {
     435                                foreach ( $settings as $setting_name => $setting ) {
    436436                                        $value = isset( $_POST[$setting_name] ) ? $_POST[$setting_name] : '';
    437437
    … …  
    455455                );
    456456
    457                 foreach( $legacy_options as $legacy_option ) {
     457                foreach ( $legacy_options as $legacy_option ) {
    458458                        // Note: Each of these options is represented by its opposite in the UI
    459459                        // Ie, the Profile Syncing option reads "Enable Sync", so when it's checked,
Note: See TracChangeset for help on using the changeset viewer.