Changeset 2576 for trunk/bp-core.php
- Timestamp:
- 02/03/2010 09:06:27 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/bp-core.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core.php
r2525 r2576 730 730 return false; 731 731 732 foreach ( $bp->bp_nav as $slug => $nav_item ) {732 foreach ( (array)$bp->bp_nav as $slug => $nav_item ) { 733 733 if ( empty( $temp[$nav_item['position']]) ) 734 734 $temp[$nav_item['position']] = $nav_item; … … 809 809 return false; 810 810 811 foreach ( $bp->bp_options_nav as $parent_slug => $subnav_items ) {811 foreach ( (array)$bp->bp_options_nav as $parent_slug => $subnav_items ) { 812 812 if ( !is_array( $subnav_items ) ) 813 813 continue; 814 814 815 foreach ( $subnav_items as $subnav_item ) {815 foreach ( (array)$subnav_items as $subnav_item ) { 816 816 if ( empty( $temp[$subnav_item['position']]) ) 817 817 $temp[$subnav_item['position']] = $subnav_item; … … 847 847 /* Unset subnav items for this nav item */ 848 848 if ( is_array( $bp->bp_options_nav[$parent_id] ) ) { 849 foreach( $bp->bp_options_nav[$parent_id] as $subnav_item ) {849 foreach( (array)$bp->bp_options_nav[$parent_id] as $subnav_item ) { 850 850 bp_core_remove_subnav_item( $parent_id, $subnav_item['slug'] ); 851 851 } … … 1582 1582 1583 1583 if ( is_array( $current ) ) { 1584 foreach( $bp_illegal_names as $bp_illegal_name ) {1584 foreach( (array)$bp_illegal_names as $bp_illegal_name ) { 1585 1585 if ( !in_array( $bp_illegal_name, $current ) ) 1586 1586 $current[] = $bp_illegal_name; … … 2007 2007 global $wpdb; 2008 2008 2009 foreach( $comments as $comment ) {2009 foreach( (array)$comments as $comment ) { 2010 2010 if ( $comment->user_id ) 2011 2011 $user_ids[] = $comment->user_id; … … 2020 2020 return $comments; 2021 2021 2022 foreach( $userdata as $user )2022 foreach( (array)$userdata as $user ) 2023 2023 $users[$user->user_id] = bp_core_get_user_domain( $user->user_id, $user->user_nicename, $user->user_login ); 2024 2024 2025 foreach( $comments as $i => $comment ) {2025 foreach( (array)$comments as $i => $comment ) { 2026 2026 if ( !empty( $comment->user_id ) ) { 2027 2027 if ( !empty( $users[$comment->user_id] ) )
Note: See TracChangeset
for help on using the changeset viewer.