USe absolute paths in require to avoid problems with wonky include paths. 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
This commit is contained in:
parent
ea350cb922
commit
7133584620
14
wp-feed.php
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 ($feed == '' || $feed == 'feed') {
|
|||
}
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue