Changeset 1206 for trunk/wp-admin/options.php
- Timestamp:
- 04/28/2004 08:31:41 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/options.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options.php
r1198 r1206 36 36 } 37 37 } 38 $option_group_id = (int) $_GET['option_group_id'];38 if (isset($_GET['option_group_id'])) $option_group_id = (int) $_GET['option_group_id']; 39 39 require_once('./optionhandler.php'); 40 40 $non_was_selected = 0; … … 84 84 if( in_array($option->option_name, $nonbools) && $new_val == 0 ) $new_value = 'closed'; 85 85 if ($new_val !== $old_val) { 86 $query = "UPDATE $tableoptions SET option_value = '$new_val' WHERE option_ id = $option->option_id";86 $query = "UPDATE $tableoptions SET option_value = '$new_val' WHERE option_name = '$option->option_name'"; 87 87 $result = $wpdb->query($query); 88 88 //if( in_array($option->option_name, $nonbools)) die('boo'.$query); … … 110 110 } 111 111 112 $goback = str_replace('?updated=true', '', $_SERVER['HTTP_REFERER']) . '?updated=true'; 112 if (strstr($_SERVER['HTTP_REFERER'], '?')) $goback = str_replace('&updated=true', '', $_SERVER['HTTP_REFERER']) . '&updated=true'; 113 else $goback = str_replace('?updated=true', '', $_SERVER['HTTP_REFERER']) . '?updated=true'; 113 114 header('Location: ' . $goback); 114 115 break;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)