Changeset 11650 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-search.php
- Timestamp:
- 03/08/2022 04:30:30 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/class-plugin-search.php
r11649 r11650 147 147 148 148 // We need to be locale aware for this 149 $this->locale = strtolower( substr( get_locale(), 0, 2 ));150 $this->is_english = ( ! $this->locale || 'en' === $this->locale);149 $this->locale = get_locale(); 150 $this->is_english = ( ! $this->locale || str_starts_with( $this->locale, 'en_' ) ); 151 151 152 152 if ( $this->is_english ) {
Note: See TracChangeset
for help on using the changeset viewer.