Include cleanups
git-svn-id: http://svn.automattic.com/wordpress/trunk@2238 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
4c6cb0f12e
commit
2520d8e8f5
|
@ -1,24 +0,0 @@
|
||||||
<?php
|
|
||||||
$curpath = dirname(__FILE__).'/';
|
|
||||||
|
|
||||||
/***** About-the-blog tags *****/
|
|
||||||
require($curpath . 'template-functions-general.php');
|
|
||||||
|
|
||||||
/***** Links *****/
|
|
||||||
require($curpath . 'template-functions-links.php');
|
|
||||||
|
|
||||||
/***** Author tags *****/
|
|
||||||
require($curpath . 'template-functions-author.php');
|
|
||||||
|
|
||||||
/***** Post tags *****/
|
|
||||||
require($curpath . 'template-functions-post.php');
|
|
||||||
|
|
||||||
/***** Category tags *****/
|
|
||||||
require($curpath . 'template-functions-category.php');
|
|
||||||
|
|
||||||
/***** Comment tags *****/
|
|
||||||
require($curpath . 'comment-functions.php');
|
|
||||||
|
|
||||||
require($curpath . 'feed-functions.php');
|
|
||||||
|
|
||||||
?>
|
|
|
@ -1,8 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/* This file sets various arrays and variables for use in WordPress */
|
|
||||||
require(ABSPATH . 'wp-includes/version.php');
|
|
||||||
|
|
||||||
// On which page are we ?
|
// On which page are we ?
|
||||||
$PHP_SELF = $_SERVER['PHP_SELF'];
|
$PHP_SELF = $_SERVER['PHP_SELF'];
|
||||||
if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) {
|
if (preg_match('#([^/]+.php)#', $PHP_SELF, $self_matches)) {
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
if ( defined('WPLANG') && '' != constant('WPLANG') ) {
|
||||||
require_once(ABSPATH . 'wp-includes/streams.php');
|
require_once(ABSPATH . 'wp-includes/streams.php');
|
||||||
require_once(ABSPATH . 'wp-includes/gettext.php');
|
require_once(ABSPATH . 'wp-includes/gettext.php');
|
||||||
|
}
|
||||||
|
|
||||||
function get_locale() {
|
function get_locale() {
|
||||||
global $locale;
|
global $locale;
|
||||||
|
|
|
@ -76,9 +76,16 @@ $wpdb->show_errors();
|
||||||
require (ABSPATH . WPINC . '/functions-formatting.php');
|
require (ABSPATH . WPINC . '/functions-formatting.php');
|
||||||
require (ABSPATH . WPINC . '/functions-post.php');
|
require (ABSPATH . WPINC . '/functions-post.php');
|
||||||
require (ABSPATH . WPINC . '/classes.php');
|
require (ABSPATH . WPINC . '/classes.php');
|
||||||
require (ABSPATH . WPINC . '/template-functions.php');
|
require (ABSPATH . WPINC . '/template-functions-general.php');
|
||||||
|
require (ABSPATH . WPINC . '/template-functions-links.php');
|
||||||
|
require (ABSPATH . WPINC . '/template-functions-author.php');
|
||||||
|
require (ABSPATH . WPINC . '/template-functions-post.php');
|
||||||
|
require (ABSPATH . WPINC . '/template-functions-category.php');
|
||||||
|
require (ABSPATH . WPINC . '/comment-functions.php');
|
||||||
|
require (ABSPATH . WPINC . '/feed-functions.php');
|
||||||
require (ABSPATH . WPINC . '/links.php');
|
require (ABSPATH . WPINC . '/links.php');
|
||||||
require (ABSPATH . WPINC . '/kses.php');
|
require (ABSPATH . WPINC . '/kses.php');
|
||||||
|
require (ABSPATH . WPINC . '/version.php');
|
||||||
|
|
||||||
if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF'], 'wp-admin/import')) :
|
if (!strstr($_SERVER['PHP_SELF'], 'install.php') && !strstr($_SERVER['PHP_SELF'], 'wp-admin/import')) :
|
||||||
$querystring_start = '?';
|
$querystring_start = '?';
|
||||||
|
|
Loading…
Reference in New Issue