mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-24 07:14:28 +00:00
Clean feed and trackback URLs.
git-svn-id: https://develop.svn.wordpress.org/trunk@836 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -5,9 +5,12 @@
|
||||
|
||||
/* These first lines are the first part of a WordPress template.
|
||||
In every template you do, you got to copy them before the CafeLog 'loop' */
|
||||
$blog=1; // enter your blog's ID
|
||||
if (! $feed) {
|
||||
$blog=1; // enter your blog's ID
|
||||
require('wp-blog-header.php');
|
||||
}
|
||||
|
||||
header('Content-type: text/xml');
|
||||
require('wp-blog-header.php');
|
||||
|
||||
if (!isset($rss_language)) { $rss_language = 'en'; }
|
||||
echo "<?xml version=\"1.0\"?".">";
|
||||
@@ -26,8 +29,8 @@ foreach ($posts as $post) { start_wp();
|
||||
if ($i < 1) {
|
||||
$i++;
|
||||
?>
|
||||
<title><?php if (isset($_REQUEST["p"])) { echo "Comments on: "; the_title_rss(); } else { bloginfo_rss("name"); echo " Comments"; } ?></title>
|
||||
<link><?php isset($_REQUEST["p"]) ? permalink_single_rss() : bloginfo_rss("url") ?></link>
|
||||
<title><?php if (isset($_REQUEST["p"]) || isset($_REQUEST["name"])) { echo "Comments on: "; the_title_rss(); } else { bloginfo_rss("name"); echo " Comments"; } ?></title>
|
||||
<link><?php (isset($_REQUEST["p"]) || isset($_REQUEST["name"])) ? permalink_single_rss() : bloginfo_rss("url") ?></link>
|
||||
<description><?php bloginfo_rss("description") ?></description>
|
||||
<dc:language><?php echo $rss_language ?></dc:language>
|
||||
<dc:creator><?php echo antispambot($admin_email) ?></dc:creator>
|
||||
@@ -40,7 +43,7 @@ foreach ($posts as $post) { start_wp();
|
||||
<sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
|
||||
|
||||
<?php
|
||||
if (isset($_REQUEST["p"])) {
|
||||
if (isset($_REQUEST["p"]) || isset($_REQUEST["name"])) {
|
||||
$comments = $wpdb->get_results("SELECT comment_ID,
|
||||
comment_author,
|
||||
comment_author_email,
|
||||
|
||||
Reference in New Issue
Block a user