Make WordPress Core


Ignore:
Timestamp:
10/18/2004 04:50:08 AM (20 years ago)
Author:
rboren
Message:

Do not stomp permalink setting. Bug 372.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/admin-header.php

    r1743 r1810  
    11<?php
    22
    3 require_once('../wp-config.php');
     3if (strstr($_SERVER['PHP_SELF'], 'plugins/')) {
     4    $wp_admin_path = '../../wp-admin/';
     5    $wp_path = '../../';
     6} else {
     7    $wp_admin_path = './';
     8    $wp_path = '../';
     9}
     10
     11require_once($wp_path . 'wp-config.php');
     12
    413require_once(ABSPATH . '/wp-admin/auth.php');
    514require(ABSPATH . '/wp-admin/admin-functions.php');
     
    3948<head>
    4049<title><?php bloginfo('name') ?> &rsaquo; <?php echo $title; ?> &#8212; WordPress</title>
    41 <link rel="stylesheet" href="wp-admin.css" type="text/css" />
    42 <link rel="shortcut icon" href="../wp-images/wp-favicon.png" />
     50<link rel="stylesheet" href="<?php echo $wp_admin_path; ?>wp-admin.css" type="text/css" />
     51<link rel="shortcut icon" href="<?php echo $wp_path; ?>wp-images/wp-favicon.png" />
    4352<meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" />
    4453
     
    111120
    112121<?php
    113 require('./menu.php');
     122require(ABSPATH . '/wp-admin/menu.php');
    114123endif;
    115124?>
Note: See TracChangeset for help on using the changeset viewer.