Changeset 10555
- Timestamp:
- 01/07/2021 05:50:27 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/events/1.0/index.php
r10554 r10555 324 324 */ 325 325 $location_name_parts = preg_split( '/[,\s]+/u', $location_name ); 326 if ( ! $location_name_parts ) { 327 // Invalid/Unsupported UTF8 characters encountered. 328 $location_name_parts = array( $location_name ); 329 } 326 330 $location_word_count = count( $location_name_parts ); 327 331 … … 698 702 $country = get_country_from_name( $location_name ); 699 703 $location_name_parts = preg_split( '/\s+/u', $location_name ); 704 if ( ! $location_name_parts ) { 705 // Invalid/Unsupported UTF8 characters encountered. 706 $location_name_parts = array( $location_name ); 707 } 700 708 $location_word_count = count( $location_name_parts ); 701 709
Note: See TracChangeset
for help on using the changeset viewer.