Changeset 1239 for trunk/wp-admin/options-head.php
- Timestamp:
- 05/07/2004 11:56:33 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/options-head.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/options-head.php
r1193 r1239 2 2 3 3 if ($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.') ); 5 5 } 6 6 7 7 //we need to iterate through the available option groups. 8 $groups = ''; 8 9 $option_groups = $wpdb->get_results("SELECT group_id, group_name, group_desc, group_longdesc FROM $tableoptiongroups ORDER BY group_id"); 9 10 foreach ($option_groups as $option_group) { … … 29 30 $_SERVER['REQUEST_URI'] = str_replace('?updated=true', '', $_SERVER['REQUEST_URI']); 30 31 foreach ($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 } 36 38 } 37 39 } … … 45 47 <br clear="all" /> 46 48 47 <?php if ( $updated) : ?>49 <?php if (isset($updated)) : ?> 48 50 <div class="updated"><p><strong><?php _e('Options saved.') ?></strong></p></div> 49 51 <?php endif; ?>
Note: See TracChangeset
for help on using the changeset viewer.