Changeset 9151

Show
Ignore:
Timestamp:
10/14/08 01:43:04 (3 months ago)
Author:
matt
Message:

Bug fix for date/time presets. Hat tip: Viper007Bond.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/options.php

    r9131 r9151  
    5656    // Handle custom date/time formats 
    5757    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'] ) ) 
    5959            $_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'] ) ) 
    6161            $_POST['time_format'] = $_POST['time_format_custom']; 
    6262    }