Changeset 41268 for trunk/src/wp-admin/options.php
- Timestamp:
- 08/18/2017 06:30:28 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options.php
r41254 r41268 178 178 179 179 // Handle translation install. 180 if ( ! empty( $_POST['WPLANG'] ) && ( ! is_multisite() || is_super_admin() ) ) { // @todo: Skip if already installed180 if ( ! empty( $_POST['WPLANG'] ) && current_user_can( 'install_languages' ) ) { 181 181 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); 182 182 183 if ( wp_can_install_language_pack() ) { 184 $language = wp_download_language_pack( $_POST['WPLANG'] ); 185 if ( $language ) { 186 $_POST['WPLANG'] = $language; 187 } 183 $language = wp_download_language_pack( $_POST['WPLANG'] ); 184 if ( $language ) { 185 $_POST['WPLANG'] = $language; 188 186 } 189 187 }
Note: See TracChangeset
for help on using the changeset viewer.