Make WordPress Core


Ignore:
Timestamp:
05/07/2004 11:56:33 PM (22 years ago)
Author:
saxmatt
Message:

E_ALL fixes and cleanups.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/options-head.php

    r1193 r1239  
    22
    33if ($user_level <= 6) {
    4     die(__("You have do not have sufficient permissions to edit the options for this blog."));
     4    die( __('You have do not have sufficient permissions to edit the options for this blog.') );
    55}
    66
    77//we need to iterate through the available option groups.
     8$groups = '';
    89$option_groups = $wpdb->get_results("SELECT group_id, group_name, group_desc, group_longdesc FROM $tableoptiongroups ORDER BY group_id");
    910foreach ($option_groups as $option_group) {
     
    2930$_SERVER['REQUEST_URI'] = str_replace('?updated=true', '', $_SERVER['REQUEST_URI']);
    3031foreach ($sublines as $subline) {
    31     preg_match('/href="([^"]+)"/', $subline, $url);
    32     if (substr($_SERVER['REQUEST_URI'], -8) == substr($url[1], -8)) {
    33         $subline = str_replace('a hr', 'a class="current" hr', $subline);
    34         if (str_replace('/wp-admin/', '', $_SERVER["REQUEST_URI"]) == $url[1]) {
    35             $subline = preg_replace('|href=".*?"|', '', $subline);
     32    if (preg_match('/href="([^"]+)"/', $subline, $url)) {
     33        if (substr($_SERVER['REQUEST_URI'], -8) == substr($url[1], -8)) {
     34            $subline = str_replace('a hr', 'a class="current" hr', $subline);
     35            if (str_replace('/wp-admin/', '', $_SERVER["REQUEST_URI"]) == $url[1]) {
     36                $subline = preg_replace('|href=".*?"|', '', $subline);
     37            }
    3638        }
    3739    }
     
    4547<br clear="all" />
    4648
    47 <?php if ($updated) : ?>
     49<?php if (isset($updated)) : ?>
    4850<div class="updated"><p><strong><?php _e('Options saved.') ?></strong></p></div>
    4951<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.