From 16e09e4c718fd617d7e7baa039a42914a7155407 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Tue, 14 Oct 2008 01:43:04 +0000 Subject: [PATCH] Bug fix for date/time presets. Hat tip: Viper007Bond. git-svn-id: https://develop.svn.wordpress.org/trunk@9151 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/options.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/options.php b/wp-admin/options.php index 8c9cbe2dd1..235410a654 100644 --- a/wp-admin/options.php +++ b/wp-admin/options.php @@ -55,9 +55,9 @@ case 'update': // Handle custom date/time formats if ( 'general' == $option_page ) { - if ( !empty($_POST['date_format']) && !empty($_POST['date_format_custom']) && '\c\u\s\t\o\m' == stripslashes( $_POST['date_format'] ) ) + if ( !empty($_POST['date_format']) && isset($_POST['date_format_custom']) && '\c\u\s\t\o\m' == stripslashes( $_POST['date_format'] ) ) $_POST['date_format'] = $_POST['date_format_custom']; - if ( !empty($_POST['time_format']) && !empty($_POST['time_format_custom']) && '\c\u\s\t\o\m' == stripslashes( $_POST['time_format'] ) ) + if ( !empty($_POST['time_format']) && isset($_POST['time_format_custom']) && '\c\u\s\t\o\m' == stripslashes( $_POST['time_format'] ) ) $_POST['time_format'] = $_POST['time_format_custom']; }