Use empty() to check if $feed is set at the beginning of the feed files. Bug 495.
git-svn-id: http://svn.automattic.com/wordpress/trunk@1888 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a4c058f2c8
commit
c44cecdb72
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (!isset($feed) || !$feed) {
|
if (empty($feed)) {
|
||||||
$blog = 1;
|
$blog = 1;
|
||||||
$doing_rss = 1;
|
$doing_rss = 1;
|
||||||
require('wp-blog-header.php');
|
require('wp-blog-header.php');
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
if ( !$feed ) {
|
if ( empty($feed) ) {
|
||||||
$withcomments = 1;
|
$withcomments = 1;
|
||||||
require('wp-blog-header.php');
|
require('wp-blog-header.php');
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php /* RDF 1.0 generator, original version by garym@teledyn.com */
|
<?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
|
$blog = 1; // enter your blog's ID
|
||||||
$doing_rss = 1;
|
$doing_rss = 1;
|
||||||
require('wp-blog-header.php');
|
require('wp-blog-header.php');
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (!isset($feed) || !$feed) {
|
if (empty($feed)) {
|
||||||
$blog = 1;
|
$blog = 1;
|
||||||
$doing_rss = 1;
|
$doing_rss = 1;
|
||||||
require('wp-blog-header.php');
|
require('wp-blog-header.php');
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (!isset($feed) || !$feed) {
|
if (empty($feed)) {
|
||||||
$blog = 1;
|
$blog = 1;
|
||||||
$doing_rss = 1;
|
$doing_rss = 1;
|
||||||
require('wp-blog-header.php');
|
require('wp-blog-header.php');
|
||||||
|
|
Loading…
Reference in New Issue