From 042719a15276e03b0e9eddeaf6085b6233b41a28 Mon Sep 17 00:00:00 2001 From: matt Date: Tue, 14 Oct 2008 01:43:04 +0000 Subject: [PATCH] Bug fix for date/time presets. Hat tip: Viper007Bond. git-svn-id: http://svn.automattic.com/wordpress/trunk@9151 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 8c9cbe2dd..235410a65 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']; }