Cleanup wp-l10n includes.

git-svn-id: http://svn.automattic.com/wordpress/trunk@2157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rboren 2005-01-27 15:20:48 +00:00
parent 4699b62b40
commit ba04c52c00
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');