Ticket #7552: datetime-selector-bugfix.patch
File datetime-selector-bugfix.patch, 952 bytes (added by , 16 years ago) |
---|
-
wp-admin/options.php
55 55 56 56 // Handle custom date/time formats 57 57 if ( 'general' == $option_page ) { 58 if ( !empty($_POST['date_format']) && !empty($_POST['date_format_custom']) && '\c\u\s\t\o\m' == stripslashes( $_POST['date_format'] ) )58 if ( !empty($_POST['date_format']) && isset($_POST['date_format_custom']) && '\c\u\s\t\o\m' == stripslashes( $_POST['date_format'] ) ) 59 59 $_POST['date_format'] = $_POST['date_format_custom']; 60 if ( !empty($_POST['time_format']) && !empty($_POST['time_format_custom']) && '\c\u\s\t\o\m' == stripslashes( $_POST['time_format'] ) )60 if ( !empty($_POST['time_format']) && isset($_POST['time_format_custom']) && '\c\u\s\t\o\m' == stripslashes( $_POST['time_format'] ) ) 61 61 $_POST['time_format'] = $_POST['time_format_custom']; 62 62 } 63 63