Changeset 5729 for trunk/bp-xprofile/bp-xprofile-filters.php
- Timestamp:
- 02/11/2012 09:32:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-xprofile/bp-xprofile-filters.php
r5699 r5729 100 100 } else { 101 101 $filtered_values = array(); 102 foreach ( (array) $field_value as $value ) {102 foreach ( (array) $field_value as $value ) { 103 103 $kses_field_value = xprofile_filter_kses( $value ); 104 104 $filtered_value = wp_rel_nofollow( force_balance_tags( $kses_field_value ) ); … … 163 163 164 164 if ( !empty( $values ) ) { 165 foreach ( (array) $values as $value ) {165 foreach ( (array) $values as $value ) { 166 166 $value = trim( $value ); 167 167 … … 185 185 186 186 function xprofile_filter_comments( $comments, $post_id ) { 187 foreach( (array) $comments as $comment ) {187 foreach( (array) $comments as $comment ) { 188 188 if ( $comment->user_id ) { 189 189 $user_ids[] = $comment->user_id; … … 195 195 196 196 if ( $fullnames = BP_XProfile_ProfileData::get_value_byid( 1, $user_ids ) ) { 197 foreach( (array) $fullnames as $user ) {197 foreach( (array) $fullnames as $user ) { 198 198 $users[$user->user_id] = trim($user->value); 199 199 } 200 200 } 201 201 202 foreach( (array) $comments as $i => $comment ) {202 foreach( (array) $comments as $i => $comment ) { 203 203 if ( !empty( $comment->user_id ) ) { 204 204 if ( !empty( $users[$comment->user_id] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.