Consistently include wp-config.php. fixes #3349

git-svn-id: http://svn.automattic.com/wordpress/trunk@5843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
markjaquith 2007-08-03 00:45:06 +00:00
parent 3ba71111de
commit 5897a90fd7
9 changed files with 10 additions and 10 deletions

View File

@ -1,5 +1,5 @@
<?php
require_once( dirname( dirname(__FILE__) ) . '/wp-config.php');
require_once('../wp-config.php');
require_once( ABSPATH . 'wp-includes/class-snoopy.php');
if ( !get_option('use_linksupdate') )

View File

@ -9,8 +9,8 @@
define('APP_REQUEST', true);
require_once('wp-config.php');
require_once('wp-includes/post-template.php');
require_once('./wp-config.php');
require_once(ABSPATH . WPINC . '/post-template.php');
// Attempt to automatically detect whether to use querystring
// or PATH_INFO, based on our environment:

View File

@ -1,7 +1,7 @@
<?php
if (empty($wp)) {
require_once('wp-config.php');
require_once('./wp-config.php');
wp('feed=atom');
}

View File

@ -1,7 +1,7 @@
<?php
if (empty($wp)) {
require_once('wp-config.php');
require_once('./wp-config.php');
wp('feed=rss2&withcomments=1');
}

View File

@ -1,7 +1,7 @@
<?php
ignore_user_abort(true);
define('DOING_CRON', TRUE);
require_once('wp-config.php');
require_once('./wp-config.php');
if ( $_GET['check'] != wp_hash('187425') )
exit;

View File

@ -1,7 +1,7 @@
<?php /* RDF 1.0 generator, original version by garym@teledyn.com */
if (empty($wp)) {
require_once('wp-config.php');
require_once('./wp-config.php');
wp('feed=rdf');
}

View File

@ -1,7 +1,7 @@
<?php
if (empty($wp)) {
require_once('wp-config.php');
require_once('./wp-config.php');
wp('feed=rss');
}

View File

@ -1,7 +1,7 @@
<?php
if (empty($wp)) {
require_once('wp-config.php');
require_once('./wp-config.php');
wp('feed=rss2');
}

View File

@ -1,7 +1,7 @@
<?php
if (empty($wp)) {
require_once('wp-config.php');
require_once('./wp-config.php');
wp('tb=1');
}