Skip to content
Browse files

USe absolute paths in require to avoid problems with wonky include pa…

…ths. http://mosquito.wordpress.org/view.php?id=1169 Props: roxeteer

git-svn-id: http://svn.automattic.com/wordpress/trunk@2491 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information...
1 parent ea350cb commit 7133584620e04c3590672b385432f6652fa5735d ryan committed Mar 29, 2005
Showing with 7 additions and 7 deletions.
  1. +7 −7 wp-feed.php
View
14 wp-feed.php
@@ -2,7 +2,7 @@
if (empty($doing_rss)) {
$doing_rss = 1;
- require('wp-blog-header.php');
+ require(dirname(__FILE__) . '/wp-blog-header.php');
}
// Remove the pad, if present.
@@ -13,23 +13,23 @@
}
if ( is_single() || ($withcomments == 1) ) {
- require('wp-commentsrss2.php');
+ require(ABSPATH . 'wp-commentsrss2.php');
} else {
switch ($feed) {
case 'atom':
- require('wp-atom.php');
+ require(ABSPATH . 'wp-atom.php');
break;
case 'rdf':
- require('wp-rdf.php');
+ require(ABSPATH . 'wp-rdf.php');
break;
case 'rss':
- require('wp-rss.php');
+ require(ABSPATH . 'wp-rss.php');
break;
case 'rss2':
- require('wp-rss2.php');
+ require(ABSPATH . 'wp-rss2.php');
break;
case 'comments-rss2':
- require('wp-commentsrss2.php');
+ require(ABSPATH . 'wp-commentsrss2.php');
break;
}
}

0 comments on commit 7133584

Please sign in to comment.
Something went wrong with that request. Please try again.