Use empty() to check if $feed is set at the beginning of the feed files. Bug 495.
git-svn-id: https://develop.svn.wordpress.org/trunk@1888 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5dfadae172
commit
ca2a782574
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if (!isset($feed) || !$feed) {
|
||||
if (empty($feed)) {
|
||||
$blog = 1;
|
||||
$doing_rss = 1;
|
||||
require('wp-blog-header.php');
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
if ( !$feed ) {
|
||||
if ( empty($feed) ) {
|
||||
$withcomments = 1;
|
||||
require('wp-blog-header.php');
|
||||
require('wp-blog-header.php');
|
||||
}
|
||||
|
||||
header('Content-type: text/xml;charset=' . get_settings('blog_charset'), true);
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php /* RDF 1.0 generator, original version by garym@teledyn.com */
|
||||
|
||||
if (!isset($feed) || !$feed) {
|
||||
if (empty($feed)) {
|
||||
$blog = 1; // enter your blog's ID
|
||||
$doing_rss = 1;
|
||||
require('wp-blog-header.php');
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
if (!isset($feed) || !$feed) {
|
||||
if (empty($feed)) {
|
||||
$blog = 1;
|
||||
$doing_rss = 1;
|
||||
require('wp-blog-header.php');
|
||||
|
@ -1,9 +1,9 @@
|
||||
<?php
|
||||
|
||||
if (!isset($feed) || !$feed) {
|
||||
$blog = 1;
|
||||
$doing_rss = 1;
|
||||
require('wp-blog-header.php');
|
||||
if (empty($feed)) {
|
||||
$blog = 1;
|
||||
$doing_rss = 1;
|
||||
require('wp-blog-header.php');
|
||||
}
|
||||
|
||||
header('Content-type: text/xml; charset=' . get_settings('blog_charset'), true);
|
||||
|
Loading…
Reference in New Issue
Block a user