Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
02/11/2012 09:32:04 PM (15 years ago)
Author:
johnjamesjacoby
Message:

Breathing room for cast variables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-buddybar.php

    r5704 r5729  
    151151                return false;
    152152
    153         foreach ( (array)$bp->bp_nav as $slug => $nav_item ) {
     153        foreach ( (array) $bp->bp_nav as $slug => $nav_item ) {
    154154                if ( empty( $temp[$nav_item['position']]) )
    155155                        $temp[$nav_item['position']] = $nav_item;
     
    288288                return false;
    289289
    290         foreach ( (array)$bp->bp_options_nav as $parent_slug => $subnav_items ) {
     290        foreach ( (array) $bp->bp_options_nav as $parent_slug => $subnav_items ) {
    291291                if ( !is_array( $subnav_items ) )
    292292                        continue;
    293293
    294                 foreach ( (array)$subnav_items as $subnav_item ) {
     294                foreach ( (array) $subnav_items as $subnav_item ) {
    295295                        if ( empty( $temp[$subnav_item['position']]) )
    296296                                $temp[$subnav_item['position']] = $subnav_item;
     
    344344        // Unset subnav items for this nav item
    345345        if ( isset( $bp->bp_options_nav[$parent_id] ) && is_array( $bp->bp_options_nav[$parent_id] ) ) {
    346                 foreach( (array)$bp->bp_options_nav[$parent_id] as $subnav_item ) {
     346                foreach( (array) $bp->bp_options_nav[$parent_id] as $subnav_item ) {
    347347                        bp_core_remove_subnav_item( $parent_id, $subnav_item['slug'] );
    348348                }
     
    459459        // Loop through each navigation item
    460460        $counter = 0;
    461         foreach( (array)$bp->bp_nav as $nav_item ) {
     461        foreach( (array) $bp->bp_nav as $nav_item ) {
    462462                $alt = ( 0 == $counter % 2 ) ? ' class="alt"' : '';
    463463
     
    472472                        $sub_counter = 0;
    473473
    474                         foreach( (array)$bp->bp_options_nav[$nav_item['slug']] as $subnav_item ) {
     474                        foreach( (array) $bp->bp_options_nav[$nav_item['slug']] as $subnav_item ) {
    475475                                $link = $subnav_item['link'];
    476476                                $name = $subnav_item['name'];
Note: See TracChangeset for help on using the changeset viewer.