Changeset 836 for trunk/wp-commentsrss2.php
- Timestamp:
- 02/05/2004 08:55:50 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-commentsrss2.php
r722 r836 6 6 /* These first lines are the first part of a WordPress template. 7 7 In every template you do, you got to copy them before the CafeLog 'loop' */ 8 $blog=1; // enter your blog's ID 8 if (! $feed) { 9 $blog=1; // enter your blog's ID 10 require('wp-blog-header.php'); 11 } 12 9 13 header('Content-type: text/xml'); 10 require('wp-blog-header.php');11 14 12 15 if (!isset($rss_language)) { $rss_language = 'en'; } … … 27 30 $i++; 28 31 ?> 29 <title><?php if (isset($_REQUEST["p"]) ) { echo "Comments on: "; the_title_rss(); } else { bloginfo_rss("name"); echo " Comments"; } ?></title>30 <link><?php isset($_REQUEST["p"]) ? permalink_single_rss() : bloginfo_rss("url") ?></link>32 <title><?php if (isset($_REQUEST["p"]) || isset($_REQUEST["name"])) { echo "Comments on: "; the_title_rss(); } else { bloginfo_rss("name"); echo " Comments"; } ?></title> 33 <link><?php (isset($_REQUEST["p"]) || isset($_REQUEST["name"])) ? permalink_single_rss() : bloginfo_rss("url") ?></link> 31 34 <description><?php bloginfo_rss("description") ?></description> 32 35 <dc:language><?php echo $rss_language ?></dc:language> … … 41 44 42 45 <?php 43 if (isset($_REQUEST["p"]) ) {46 if (isset($_REQUEST["p"]) || isset($_REQUEST["name"])) { 44 47 $comments = $wpdb->get_results("SELECT comment_ID, 45 48 comment_author,
Note: See TracChangeset
for help on using the changeset viewer.