[cc-commits] [CC SVN] r14771 - ccwordpress/trunk/www/wp-content/themes/cc5

webmaster at creativecommons.org webmaster at creativecommons.org
Thu Nov 18 15:26:39 EST 2010


Author: bse
Date: 2010-11-18 20:26:39 +0000 (Thu, 18 Nov 2010)
New Revision: 14771

Modified:
   ccwordpress/trunk/www/wp-content/themes/cc5/category.php
   ccwordpress/trunk/www/wp-content/themes/cc5/header.php
Log:
Production didn't like get_category_link so much. Fixed.

Modified: ccwordpress/trunk/www/wp-content/themes/cc5/category.php
===================================================================
--- ccwordpress/trunk/www/wp-content/themes/cc5/category.php	2010-11-18 20:14:41 UTC (rev 14770)
+++ ccwordpress/trunk/www/wp-content/themes/cc5/category.php	2010-11-18 20:26:39 UTC (rev 14771)
@@ -64,7 +64,7 @@
 
             <div id="archives">
 
-			<strong><a href="<?php echo get_category_link($category_id); ?>/feed/rss">Subscribe to RSS</a></strong><br/><br/>
+			<strong><a href="<?php echo get_settings('home') . '/' . $category->slug; ?>/feed/rss">Subscribe to RSS</a></strong><br/><br/>
 <!--			  <h4>Archives</h4> 
               <ul class="archives">
                 <?php cc_get_cat_archives($cat, 'monthly', '', 'html', '', '', TRUE); ?>

Modified: ccwordpress/trunk/www/wp-content/themes/cc5/header.php
===================================================================
--- ccwordpress/trunk/www/wp-content/themes/cc5/header.php	2010-11-18 20:14:41 UTC (rev 14770)
+++ ccwordpress/trunk/www/wp-content/themes/cc5/header.php	2010-11-18 20:26:39 UTC (rev 14771)
@@ -44,7 +44,7 @@
   <?php if (is_home() || ($category_name == "weblog")) { ?>
   <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php bloginfo('home')?>/weblog/rss" />
   <?php } else if (is_category()) { ?>
-  <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php echo get_category_link($category_id); ?>/feed/rss" />
+  <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php echo get_settings('home') . '/categories/' . $category->slug ?>/feed/rss" />
   <?php } else if (is_tag()) { ?>
   <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php echo get_tag_link($tag_id); ?>/feed/rss" />
   <?php } ?>




More information about the cc-commits mailing list