diff --git src/bp-xprofile/bp-xprofile-filters.php src/bp-xprofile/bp-xprofile-filters.php
index d5d4f85..1245041 100644
|
|
function xprofile_filter_link_profile_data( $field_value, $field_type = 'textbox |
349 | 349 | return $field_value; |
350 | 350 | } |
351 | 351 | |
352 | | if ( !strpos( $field_value, ',' ) && ( count( explode( ' ', $field_value ) ) > 5 ) ) { |
| 352 | if ( ! strpos( $field_value, ',' ) && ! strpos( $field_value, ';' ) && ( count( explode( ' ', $field_value ) ) > 5 ) ) { |
353 | 353 | return $field_value; |
354 | 354 | } |
355 | 355 | |
356 | | $values = explode( ',', $field_value ); |
| 356 | if ( strpos( $field_value, ';' ) ) { |
| 357 | $list_type = 'semicolon'; |
| 358 | $values = explode( ';', $field_value ); // Semicolon-separated lists. |
| 359 | } else { |
| 360 | $list_type = 'comma'; |
| 361 | $values = explode( ',', $field_value ); // Comma-separated lists. |
| 362 | } |
357 | 363 | |
358 | | if ( !empty( $values ) ) { |
| 364 | if ( ! empty( $values ) ) { |
359 | 365 | foreach ( (array) $values as $value ) { |
360 | 366 | $value = trim( $value ); |
361 | 367 | |
… |
… |
function xprofile_filter_link_profile_data( $field_value, $field_type = 'textbox |
379 | 385 | } |
380 | 386 | } |
381 | 387 | |
382 | | $values = implode( ', ', $new_values ); |
| 388 | if ( 'semicolon' === $list_type ) { |
| 389 | $values = implode( '; ', $new_values ); |
| 390 | } else { |
| 391 | $values = implode( ', ', $new_values ); |
| 392 | } |
383 | 393 | } |
384 | 394 | |
385 | 395 | return $values; |