Changeset 4332 for trunk/wp-admin/options.php
- Timestamp:
- 10/04/2006 12:18:28 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/options.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options.php
r4330 r4332 89 89 check_admin_referer('update-options'); 90 90 91 if (!$_POST['page_options']) { 92 foreach ($_POST as $key => $value) { 93 $options[] = $key; 91 if ( !$_POST['page_options'] ) { 92 foreach ( (array) $_POST as $key => $value) { 93 if ( !in_array($key, array('_wpnonce', '_wp_http_referer')) ) 94 $options[] = $key; 94 95 } 95 96 } else { … … 123 124 <?php 124 125 $options = $wpdb->get_results("SELECT * FROM $wpdb->options ORDER BY option_name"); 126 foreach ( (array) $options as $option ) 127 $options_to_update[] = $option->option_name; 128 $options_to_update = implode(',', $options_to_update); 129 ?> 125 130 126 foreach ($options as $option) : 131 <input type="hidden" name="page_options" value="<?php echo $options_to_update; ?>" /> 132 133 <?php 134 foreach ( (array) $options as $option) : 127 135 $value = wp_specialchars($option->option_value, 'single'); 128 136 echo "
Note: See TracChangeset
for help on using the changeset viewer.