Changeset 47219 for trunk/src/wp-includes/l10n.php
- Timestamp:
- 02/09/2020 04:52:28 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/l10n.php
r47198 r47219 63 63 } 64 64 65 if ( $ms_locale !== false ) {65 if ( false !== $ms_locale ) { 66 66 $locale = $ms_locale; 67 67 } 68 68 } else { 69 69 $db_locale = get_option( 'WPLANG' ); 70 if ( $db_locale !== false ) {70 if ( false !== $db_locale ) { 71 71 $locale = $db_locale; 72 72 } … … 941 941 942 942 // If a path was given and the handle file exists simply return it. 943 $file_base = $domain === 'default'? $locale : $domain . '-' . $locale;943 $file_base = 'default' === $domain ? $locale : $domain . '-' . $locale; 944 944 $handle_filename = $file_base . '-' . $handle . '.json'; 945 945 … … 1336 1336 */ 1337 1337 function wp_get_installed_translations( $type ) { 1338 if ( $type !== 'themes' && $type !== 'plugins' && $type !== 'core') {1338 if ( 'themes' !== $type && 'plugins' !== $type && 'core' !== $type ) { 1339 1339 return array(); 1340 1340 }
Note: See TracChangeset
for help on using the changeset viewer.