Changeset 55099 for trunk/src/wp-admin/includes/user.php
- Timestamp:
- 01/19/2023 02:11:08 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/user.php
r54891 r55099 120 120 $locale = 'en_US'; 121 121 } elseif ( ! in_array( $locale, get_available_languages(), true ) ) { 122 $locale = ''; 122 if ( current_user_can( 'install_languages' ) && wp_can_install_language_pack() ) { 123 if ( ! wp_download_language_pack( $locale ) ) { 124 $locale = ''; 125 } 126 } else { 127 $locale = ''; 128 } 123 129 } 124 130
Note: See TracChangeset
for help on using the changeset viewer.