Ticket #1782: options.php.diff
| File options.php.diff, 680 bytes (added by , 21 years ago) |
|---|
-
options.php
46 46 $old_siteurl = get_settings('siteurl'); 47 47 $old_home = get_settings('home'); 48 48 49 // prevent ".php" on end of siteurl or home 50 foreach ( array('home', 'siteurl') as $opt_name ) { 51 if ( strpos(trim($_POST[$opt_name]), '.php') == strlen(trim($_POST[$opt_name])) - 4 ) { 52 $old_name = 'old_' . $opt_name; 53 $_POST[$opt_name] = $$old_name; 54 } 55 } 56 49 57 // HACK 50 58 // Options that if not there have 0 value but need to be something like "closed" 51 59 $nonbools = array('default_ping_status', 'default_comment_status');