mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user