Skip to:
Content

BuddyPress.org


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

Breathing room for cast variables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-xprofile/bp-xprofile-filters.php

    r5699 r5729  
    100100    } else {
    101101        $filtered_values = array();
    102         foreach ( (array)$field_value as $value ) {
     102        foreach ( (array) $field_value as $value ) {
    103103            $kses_field_value       = xprofile_filter_kses( $value );
    104104            $filtered_value     = wp_rel_nofollow( force_balance_tags( $kses_field_value ) );
     
    163163
    164164    if ( !empty( $values ) ) {
    165         foreach ( (array)$values as $value ) {
     165        foreach ( (array) $values as $value ) {
    166166            $value = trim( $value );
    167167
     
    185185
    186186function xprofile_filter_comments( $comments, $post_id ) {
    187     foreach( (array)$comments as $comment ) {
     187    foreach( (array) $comments as $comment ) {
    188188        if ( $comment->user_id ) {
    189189            $user_ids[] = $comment->user_id;
     
    195195
    196196    if ( $fullnames = BP_XProfile_ProfileData::get_value_byid( 1, $user_ids ) ) {
    197         foreach( (array)$fullnames as $user ) {
     197        foreach( (array) $fullnames as $user ) {
    198198            $users[$user->user_id] = trim($user->value);
    199199        }
    200200    }
    201201
    202     foreach( (array)$comments as $i => $comment ) {
     202    foreach( (array) $comments as $i => $comment ) {
    203203        if ( !empty( $comment->user_id ) ) {
    204204            if ( !empty( $users[$comment->user_id] ) ) {
Note: See TracChangeset for help on using the changeset viewer.