- Timestamp:
- 11/30/2020 05:40:43 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/events/1.0/index.php
r10474 r10475 135 135 // Simplified parameters for lookup by location (city) name, with optional timezone and locale params for extra context. 136 136 if ( isset( $_REQUEST['location'] ) ) { 137 $location_args['location_name'] = trim( str_replace( ',', ' ', $_REQUEST['location'] ));137 $location_args['location_name'] = trim( $_REQUEST['location'] ); 138 138 } 139 139 … … 311 311 * delimiter. 312 312 */ 313 $location_name_parts = preg_split( '/ \s+/u', $location_name );313 $location_name_parts = preg_split( '/[,\s]+/u', $location_name ); 314 314 $location_word_count = count( $location_name_parts ); 315 315
Note: See TracChangeset
for help on using the changeset viewer.