Changeset 10106
- Timestamp:
- 07/30/2020 05:55:17 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/locale-detection/class-detector.php
r6680 r10106 212 212 */ 213 213 protected function sanitize_locale( $locale ) { 214 if ( ! is_string( $locale ) ) { 215 return ''; 216 } 217 214 218 return preg_replace( '/[^a-zA-Z0-9_]/', '', $locale ); 215 219 }
Note: See TracChangeset
for help on using the changeset viewer.