Changeset 1066
- Timestamp:
- 08/17/07 00:57:15 (1 year ago)
- Files:
-
- trunk/src/lyceum/wp-admin/options.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/lyceum/wp-admin/options.php
r1064 r1066 180 180 } 181 181 182 $ goback = remove_query_arg('updated' , $_SERVER['HTTP_REFERER']);182 $referred = remove_query_arg('updated' , wp_get_referer()); 183 183 if ( 0 != count($errors)) 184 184 $_SESSION['options_error'] = $errors; 185 if($any_changed) 186 $goback = add_query_arg('updated', 'true', $_SERVER['HTTP_REFERER']); 187 $referred = remove_query_arg('updated' , wp_get_referer()); 185 if($any_changed) // This was added in http://source.ibiblio.org/trac/lyceum/changeset/801. I vaguely remember that it was to compensate for some edge case, and that Jameson (fusion) had determined that it was still compatible with all the other WordPress code. -jjb 186 $goback = add_query_arg('updated', 'true', wp_get_referer()); 188 187 $goback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $goback); 189 188 if (get_settings('home') != $old_home) … … 203 202 <?php 204 203 $options = $wpdb->get_results("SELECT * FROM $wpdb->options WHERE blog = '$blog' ORDER BY option_name"); 205 $page_options = array();206 204 207 205 foreach ( (array) $options as $option) : … … 229 227 $options_to_update[] = $option->option_name; 230 228 $class = 'all-options'; 231 232 229 } 233 230 echo "
