Changeset 4333
- Timestamp:
- 10/04/2006 12:19:05 PM (19 years ago)
- File:
-
- 1 edited
-
branches/2.0/wp-admin/options.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-admin/options.php
r4331 r4333 93 93 check_admin_referer('update-options'); 94 94 95 if (!$_POST['page_options']) { 96 foreach ($_POST as $key => $value) { 97 $options[] = $key; 95 if ( !$_POST['page_options'] ) { 96 foreach ( (array) $_POST as $key => $value) { 97 if ( !in_array($key, array('_wpnonce', '_wp_http_referer')) ) 98 $options[] = $key; 98 99 } 99 100 } else { … … 148 149 <?php 149 150 $options = $wpdb->get_results("SELECT * FROM $wpdb->options ORDER BY option_name"); 151 foreach ( (array) $options as $option ) 152 $options_to_update[] = $option->option_name; 153 $options_to_update = implode(',', $options_to_update); 154 ?> 150 155 151 foreach ($options as $option) : 156 <input type="hidden" name="page_options" value="<?php echo $options_to_update; ?>" /> 157 158 <?php 159 foreach ( (array) $options as $option) : 152 160 $value = wp_specialchars($option->option_value); 153 161 echo "
Note: See TracChangeset
for help on using the changeset viewer.