Changeset 2526
- Timestamp:
- 04/10/2005 08:07:46 PM (19 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options.php
r2494 r2526 54 54 $old_val = $option->option_value; 55 55 $new_val = trim($_POST[$option->option_name]); 56 if ( !$new_val && $old_val != 0 )57 $new_val = '';58 56 if( in_array($option->option_name, $nonbools) && ( $new_val == '0' || $new_val == '') ) 59 57 $new_val = 'closed'; -
trunk/wp-includes/functions.php
r2525 r2526 85 85 $weekday = date('w',$day); 86 86 $i = 86400; 87 88 if ($weekday < get_settings('start_of_week')) 89 $weekday = 7 - (get_settings('start_of_week') - $weekday); 90 87 91 while ($weekday > get_settings('start_of_week')) { 88 92 $weekday = date('w',$day); 93 if ($weekday < get_settings('start_of_week')) 94 $weekday = 7 - (get_settings('start_of_week') - $weekday); 95 89 96 $day = $day - 86400; 90 97 $i = 0; 91 98 } 92 99 $week['start'] = $day + 86400 - $i; 93 $week['end'] = $day + 691199; 100 //$week['end'] = $day - $i + 691199; 101 $week['end'] = $week['start'] + 604799; 94 102 return $week; 95 103 }
Note: See TracChangeset
for help on using the changeset viewer.