Changeset 10312 for sites/trunk/wordpress.org/public_html/wp-content/plugins/glotpress-translate-bridge/glotpress-translate-bridge.php
- Timestamp:
- 09/29/2020 06:13:00 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/glotpress-translate-bridge/glotpress-translate-bridge.php
r8219 r10312 183 183 184 184 preg_match( '!^([a-z]{2,3})(_([A-Z]{2}))?(_([a-z0-9]+))?$!', $wp_locale, $matches ); 185 if ( ! $matches ) { 186 return false; 187 } 185 188 186 189 $wp_locale = $matches[1] . ( isset( $matches[2] ) ? $matches[2] : '' );
Note: See TracChangeset
for help on using the changeset viewer.