mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-10-05 23:27:04 +00:00
Do not stomp permalink setting. Bug 372.
git-svn-id: https://develop.svn.wordpress.org/trunk@1810 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1,6 +1,15 @@
|
||||
<?php
|
||||
|
||||
require_once('../wp-config.php');
|
||||
if (strstr($_SERVER['PHP_SELF'], 'plugins/')) {
|
||||
$wp_admin_path = '../../wp-admin/';
|
||||
$wp_path = '../../';
|
||||
} else {
|
||||
$wp_admin_path = './';
|
||||
$wp_path = '../';
|
||||
}
|
||||
|
||||
require_once($wp_path . 'wp-config.php');
|
||||
|
||||
require_once(ABSPATH . '/wp-admin/auth.php');
|
||||
require(ABSPATH . '/wp-admin/admin-functions.php');
|
||||
|
||||
@@ -38,8 +47,8 @@ if ($standalone == 0) :
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<head>
|
||||
<title><?php bloginfo('name') ?> › <?php echo $title; ?> — WordPress</title>
|
||||
<link rel="stylesheet" href="wp-admin.css" type="text/css" />
|
||||
<link rel="shortcut icon" href="../wp-images/wp-favicon.png" />
|
||||
<link rel="stylesheet" href="<?php echo $wp_admin_path; ?>wp-admin.css" type="text/css" />
|
||||
<link rel="shortcut icon" href="<?php echo $wp_path; ?>wp-images/wp-favicon.png" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" />
|
||||
|
||||
<?php if (isset($xfn)) : ?>
|
||||
@@ -110,6 +119,6 @@ window.onload = blurry;
|
||||
</div>
|
||||
|
||||
<?php
|
||||
require('./menu.php');
|
||||
require(ABSPATH . '/wp-admin/menu.php');
|
||||
endif;
|
||||
?>
|
||||
Reference in New Issue
Block a user