mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
some cleanups, and a quick undefined variable fix
git-svn-id: https://develop.svn.wordpress.org/trunk@1358 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
12
wp-rss2.php
12
wp-rss2.php
@@ -1,16 +1,16 @@
|
||||
<?php
|
||||
if (!isset($feed)) {
|
||||
<?php
|
||||
|
||||
if (!isset($feed) || !$feed) {
|
||||
$blog = 1;
|
||||
$doing_rss = 1;
|
||||
require('wp-blog-header.php');
|
||||
}
|
||||
$more = 1;
|
||||
$charset = get_settings('blog_charset');
|
||||
if (!$charset) $charset = 'UTF-8';
|
||||
|
||||
header('Content-type: text/xml', true);
|
||||
$more = 1;
|
||||
|
||||
?>
|
||||
<?php echo '<?xml version="1.0" encoding="' . $charset . '"?'.'>'; ?>
|
||||
<?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
|
||||
|
||||
<!-- generator="wordpress/<?php echo $wp_version ?>" -->
|
||||
<rss version="2.0"
|
||||
|
||||
Reference in New Issue
Block a user