Changeset 13878 for trunk/src/bp-xprofile/bp-xprofile-filters.php
- Timestamp:
- 06/01/2024 04:26:18 PM (2 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-xprofile/bp-xprofile-filters.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-xprofile/bp-xprofile-filters.php
r13806 r13878 426 426 $values = explode( ';', $field_value ); 427 427 428 array_walk( $values, function ( &$value, $key ) use ( $field_type, $field ) {428 array_walk( $values, function ( &$value, $key ) use ( $field_type, $field ) { 429 429 $value = bp_xprofile_escape_field_data( $value, $field_type, $field->id ); 430 430 } ); … … 480 480 481 481 // Locate comment authors with WP accounts. 482 foreach ( (array) $comments as $comment ) {482 foreach ( (array) $comments as $comment ) { 483 483 if ( $comment->user_id ) { 484 484 $user_ids[] = $comment->user_id; … … 493 493 // Pull up the xprofile fullname of each commenter. 494 494 if ( $fullnames = bp_core_get_user_displaynames( $user_ids ) ) { 495 foreach ( (array) $fullnames as $user_id => $user_fullname ) {495 foreach ( (array) $fullnames as $user_id => $user_fullname ) { 496 496 $users[ $user_id ] = trim( stripslashes( $user_fullname ) ); 497 497 } … … 499 499 500 500 // Loop through and match xprofile fullname with commenters. 501 foreach ( (array) $comments as $i => $comment ) {501 foreach ( (array) $comments as $i => $comment ) { 502 502 if ( ! empty( $comment->user_id ) ) { 503 503 if ( ! empty( $users[ $comment->user_id ] ) ) {
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)