Cleanup wp-l10n includes.

git-svn-id: https://develop.svn.wordpress.org/trunk@2157 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-01-27 15:20:48 +00:00
parent dac0c05dc3
commit 5f128146b2
3 changed files with 1 additions and 7 deletions

View File

@ -1,6 +1,5 @@
<?php
require_once('../wp-config.php');
require_once(ABSPATH . 'wp-includes/wp-l10n.php');
require_once(ABSPATH . 'wp-admin/admin-functions.php');
auth_redirect();

View File

@ -1,8 +1,4 @@
<?php
$parentpath = dirname(dirname(__FILE__));
require_once($parentpath.'/wp-config.php');
$locale = '';
// WPLANG is defined in wp-config.

View File

@ -58,14 +58,13 @@ $tableoptions = $wpdb->options;
$tablepostmeta = $wpdb->postmeta;
require (ABSPATH . WPINC . '/functions.php');
require_once (ABSPATH . WPINC . '/wp-l10n.php');
$wpdb->hide_errors();
if ( !update_user_cache() && !strstr($_SERVER['PHP_SELF'], 'install.php') )
die("It doesn't look like you've installed WP yet. Try running <a href='wp-admin/install.php'>install.php</a>.");
$wpdb->show_errors();
require_once (ABSPATH . WPINC . '/wp-l10n.php');
require (ABSPATH . WPINC . '/functions-formatting.php');
require (ABSPATH . WPINC . '/functions-post.php');
require (ABSPATH . WPINC . '/classes.php');