Ticket #55503: 55503.1.patch
File 55503.1.patch, 973 bytes (added by , 3 years ago) |
---|
-
src/wp-admin/options.php
265 265 if ( ! empty( $_POST['date_format'] ) && isset( $_POST['date_format_custom'] ) 266 266 && '\c\u\s\t\o\m' === wp_unslash( $_POST['date_format'] ) 267 267 ) { 268 $_POST['date_format'] = $_POST['date_format_custom'];268 $_POST['date_format'] = !empty( $_POST['date_format_custom'] ) ? $_POST['date_format_custom'] : get_option('date_format'); 269 269 } 270 270 271 271 if ( ! empty( $_POST['time_format'] ) && isset( $_POST['time_format_custom'] ) 272 272 && '\c\u\s\t\o\m' === wp_unslash( $_POST['time_format'] ) 273 273 ) { 274 $_POST['time_format'] = $_POST['time_format_custom'];274 $_POST['time_format'] = !empty( $_POST['time_format_custom'] ) ? $_POST['time_format_custom'] : get_option('time_format'); 275 275 } 276 276 277 277 // Map UTC+- timezones to gmt_offsets and set timezone_string to empty.