Consistently include wp-config.php. fixes #3349
git-svn-id: https://develop.svn.wordpress.org/trunk@5843 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c82cd99e96
commit
02df990e1f
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once( dirname( dirname(__FILE__) ) . '/wp-config.php');
|
require_once('../wp-config.php');
|
||||||
require_once( ABSPATH . 'wp-includes/class-snoopy.php');
|
require_once( ABSPATH . 'wp-includes/class-snoopy.php');
|
||||||
|
|
||||||
if ( !get_option('use_linksupdate') )
|
if ( !get_option('use_linksupdate') )
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|
|
||||||
define('APP_REQUEST', true);
|
define('APP_REQUEST', true);
|
||||||
|
|
||||||
require_once('wp-config.php');
|
require_once('./wp-config.php');
|
||||||
require_once('wp-includes/post-template.php');
|
require_once(ABSPATH . WPINC . '/post-template.php');
|
||||||
|
|
||||||
// Attempt to automatically detect whether to use querystring
|
// Attempt to automatically detect whether to use querystring
|
||||||
// or PATH_INFO, based on our environment:
|
// or PATH_INFO, based on our environment:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (empty($wp)) {
|
if (empty($wp)) {
|
||||||
require_once('wp-config.php');
|
require_once('./wp-config.php');
|
||||||
wp('feed=atom');
|
wp('feed=atom');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (empty($wp)) {
|
if (empty($wp)) {
|
||||||
require_once('wp-config.php');
|
require_once('./wp-config.php');
|
||||||
wp('feed=rss2&withcomments=1');
|
wp('feed=rss2&withcomments=1');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
ignore_user_abort(true);
|
ignore_user_abort(true);
|
||||||
define('DOING_CRON', TRUE);
|
define('DOING_CRON', TRUE);
|
||||||
require_once('wp-config.php');
|
require_once('./wp-config.php');
|
||||||
|
|
||||||
if ( $_GET['check'] != wp_hash('187425') )
|
if ( $_GET['check'] != wp_hash('187425') )
|
||||||
exit;
|
exit;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php /* RDF 1.0 generator, original version by garym@teledyn.com */
|
<?php /* RDF 1.0 generator, original version by garym@teledyn.com */
|
||||||
|
|
||||||
if (empty($wp)) {
|
if (empty($wp)) {
|
||||||
require_once('wp-config.php');
|
require_once('./wp-config.php');
|
||||||
wp('feed=rdf');
|
wp('feed=rdf');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (empty($wp)) {
|
if (empty($wp)) {
|
||||||
require_once('wp-config.php');
|
require_once('./wp-config.php');
|
||||||
wp('feed=rss');
|
wp('feed=rss');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (empty($wp)) {
|
if (empty($wp)) {
|
||||||
require_once('wp-config.php');
|
require_once('./wp-config.php');
|
||||||
wp('feed=rss2');
|
wp('feed=rss2');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (empty($wp)) {
|
if (empty($wp)) {
|
||||||
require_once('wp-config.php');
|
require_once('./wp-config.php');
|
||||||
wp('tb=1');
|
wp('tb=1');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user