Skip to content

Commit

Permalink
Consistently include wp-config.php. fixes #3349
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@5843 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
markjaquith committed Aug 3, 2007
1 parent 3ba7111 commit 5897a90
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion wp-admin/update-links.php
Original file line number Diff line number Diff line change
@@ -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') )
Expand Down
4 changes: 2 additions & 2 deletions wp-app.php
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion wp-atom.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

if (empty($wp)) {
require_once('wp-config.php');
require_once('./wp-config.php');
wp('feed=atom');
}

Expand Down
2 changes: 1 addition & 1 deletion wp-commentsrss2.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

if (empty($wp)) {
require_once('wp-config.php');
require_once('./wp-config.php');
wp('feed=rss2&withcomments=1');
}

Expand Down
2 changes: 1 addition & 1 deletion wp-cron.php
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
2 changes: 1 addition & 1 deletion wp-rdf.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php /* RDF 1.0 generator, original version by [email protected] */

if (empty($wp)) {
require_once('wp-config.php');
require_once('./wp-config.php');
wp('feed=rdf');
}

Expand Down
2 changes: 1 addition & 1 deletion wp-rss.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

if (empty($wp)) {
require_once('wp-config.php');
require_once('./wp-config.php');
wp('feed=rss');
}

Expand Down
2 changes: 1 addition & 1 deletion wp-rss2.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

if (empty($wp)) {
require_once('wp-config.php');
require_once('./wp-config.php');
wp('feed=rss2');
}

Expand Down
2 changes: 1 addition & 1 deletion wp-trackback.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

if (empty($wp)) {
require_once('wp-config.php');
require_once('./wp-config.php');
wp('tb=1');
}

Expand Down

0 comments on commit 5897a90

Please sign in to comment.