mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Cleanup wp-l10n includes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2157 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4699b62b40
commit
ba04c52c00
@ -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();
|
||||
|
||||
|
@ -1,8 +1,4 @@
|
||||
<?php
|
||||
$parentpath = dirname(dirname(__FILE__));
|
||||
|
||||
require_once($parentpath.'/wp-config.php');
|
||||
|
||||
$locale = '';
|
||||
|
||||
// WPLANG is defined in wp-config.
|
||||
|
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user