Log in with username/password: lyceum/lyceum

Changeset 1066

Show
Ignore:
Timestamp:
08/17/07 00:57:15 (1 year ago)
Author:
jjb
Message:

Remove cruft, make parallel with WordPress?.

#749, #750

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/lyceum/wp-admin/options.php

    r1064 r1066  
    180180    } 
    181181     
    182    $goback = remove_query_arg('updated' , $_SERVER['HTTP_REFERER']); 
     182   $referred = remove_query_arg('updated' , wp_get_referer()); 
    183183   if ( 0 != count($errors)) 
    184184      $_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()); 
    188187   $goback = preg_replace('|[^a-z0-9-~+_.?#=&;,/:]|i', '', $goback); 
    189188   if (get_settings('home') != $old_home) 
     
    203202<?php 
    204203$options = $wpdb->get_results("SELECT * FROM $wpdb->options WHERE blog = '$blog' ORDER BY option_name"); 
    205 $page_options = array(); 
    206204 
    207205foreach ( (array) $options as $option) : 
     
    229227      $options_to_update[] = $option->option_name; 
    230228      $class = 'all-options'; 
    231        
    232229   } 
    233230   echo " 
Log in with username/password: lyceum/lyceum