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/classes/class-bp-core-nav.php

    r13468 r13878  
    476476
    477477                if ( $primary_nav_items ) {
    478                         foreach( $primary_nav_items as $key_nav => $primary_nav ) {
     478                        foreach ( $primary_nav_items as $key_nav => $primary_nav ) {
    479479                                // Try to get the children.
    480480                                $children = $this->get_secondary( array( 'parent_slug' => $primary_nav->slug, 'user_has_access' => true ) );
Note: See TracChangeset for help on using the changeset viewer.