Changeset 30335 for trunk/src/wp-admin/options.php
- Timestamp:
- 11/13/2014 05:00:08 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/options.php
r29630 r30335 152 152 } 153 153 154 // Handle custom date/time formats.155 154 if ( 'general' == $option_page ) { 155 // Handle custom date/time formats. 156 156 if ( !empty($_POST['date_format']) && isset($_POST['date_format_custom']) && '\c\u\s\t\o\m' == wp_unslash( $_POST['date_format'] ) ) 157 157 $_POST['date_format'] = $_POST['date_format_custom']; … … 163 163 $_POST['gmt_offset'] = preg_replace('/UTC\+?/', '', $_POST['gmt_offset']); 164 164 $_POST['timezone_string'] = ''; 165 } 166 167 // Handle translation install. 168 if ( ! empty( $_POST['WPLANG'] ) && ( ! is_multisite() || is_super_admin() ) ) { // @todo: Skip if already installed 169 require_once( ABSPATH . 'wp-admin/includes/translation-install.php' ); 170 171 if ( wp_can_install_language_pack() ) { 172 $language = wp_download_language_pack( $_POST['WPLANG'] ); 173 if ( $language ) { 174 $_POST['WPLANG'] = $language; 175 } 176 } 165 177 } 166 178 }
Note: See TracChangeset
for help on using the changeset viewer.