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:
parent
78e903528d
commit
c0f296df06
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
if (! $feed) {
|
|
||||||
|
if (!isset($feed) || !$feed) {
|
||||||
$blog = 1;
|
$blog = 1;
|
||||||
$doing_rss = 1;
|
$doing_rss = 1;
|
||||||
require('wp-blog-header.php');
|
require('wp-blog-header.php');
|
||||||
|
@ -1,12 +1,13 @@
|
|||||||
<?php /* RDF 1.0 generator, original version by garym@teledyn.com */
|
<?php /* RDF 1.0 generator, original version by garym@teledyn.com */
|
||||||
if (! $feed) {
|
|
||||||
|
if (!isset($feed) || !$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');
|
||||||
}
|
}
|
||||||
$more = 1;
|
|
||||||
|
|
||||||
header('Content-type: application/rdf+xml', true);
|
header('Content-type: application/rdf+xml', true);
|
||||||
|
$more = 1;
|
||||||
|
|
||||||
add_filter('the_content', 'trim');
|
add_filter('the_content', 'trim');
|
||||||
?>
|
?>
|
||||||
|
13
wp-rss.php
13
wp-rss.php
@ -1,12 +1,13 @@
|
|||||||
<?php /* These first lines are the first part of a CafeLog template.
|
<?php
|
||||||
In every template you do, you got to copy them before the CafeLog 'loop' */
|
|
||||||
if (! $feed) {
|
if (!isset($feed) || !$feed) {
|
||||||
$blog = 1; // enter your blog's ID
|
$blog = 1;
|
||||||
$doing_rss = 1;
|
$doing_rss = 1;
|
||||||
require('wp-blog-header.php');
|
require('wp-blog-header.php');
|
||||||
}
|
}
|
||||||
|
|
||||||
header('Content-type: text/xml', true);
|
header('Content-type: text/xml', true);
|
||||||
|
$more = 1;
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
|
<?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
|
||||||
@ -23,10 +24,6 @@ header('Content-type: text/xml', true);
|
|||||||
<item>
|
<item>
|
||||||
<title><?php the_title_rss() ?></title>
|
<title><?php the_title_rss() ?></title>
|
||||||
<?php
|
<?php
|
||||||
// we might use this in the future, but not now, that's why it's commented in PHP
|
|
||||||
// so that it doesn't appear at all in the RSS
|
|
||||||
// echo "<category>"; the_category_unicode(); echo "</category>";
|
|
||||||
$more = 1;
|
|
||||||
if (get_settings('rss_use_excerpt')) {
|
if (get_settings('rss_use_excerpt')) {
|
||||||
?>
|
?>
|
||||||
<description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description>
|
<description><?php the_excerpt_rss(get_settings('rss_excerpt_length'), 2) ?></description>
|
||||||
|
10
wp-rss2.php
10
wp-rss2.php
@ -1,16 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
if (!isset($feed)) {
|
|
||||||
|
if (!isset($feed) || !$feed) {
|
||||||
$blog = 1;
|
$blog = 1;
|
||||||
$doing_rss = 1;
|
$doing_rss = 1;
|
||||||
require('wp-blog-header.php');
|
require('wp-blog-header.php');
|
||||||
}
|
}
|
||||||
$more = 1;
|
|
||||||
$charset = get_settings('blog_charset');
|
|
||||||
if (!$charset) $charset = 'UTF-8';
|
|
||||||
header('Content-type: text/xml', true);
|
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 ?>" -->
|
<!-- generator="wordpress/<?php echo $wp_version ?>" -->
|
||||||
<rss version="2.0"
|
<rss version="2.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user