WordPress.org

Make WordPress Core

Ticket #1380: xsl-patch.txt

File xsl-patch.txt, 608 bytes (added by elidourado, 16 years ago)

check theme dir for rss2.xsl file, use if there

Line 
1Index: wp-rss2.php
2===================================================================
3--- wp-rss2.php (revision 3713)
4+++ wp-rss2.php (working copy)
5@@ -9,7 +9,9 @@
6 $more = 1;
7 
8 ?>
9-<?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>'; ?>
10+<?php echo '<?xml version="1.0" encoding="'.get_settings('blog_charset').'"?'.'>';
11+if ( file_exists(TEMPLATEPATH . "/rss2.xsl") ) {
12+   echo '<?xml-stylesheet href="'.get_template_directory_uri().'/rss2.xsl" type="text/xsl" media="screen"?>';} ?>
13 
14 <!-- generator="wordpress/<?php bloginfo_rss('version') ?>" -->
15 <rss version="2.0"