[wp-trac] [WordPress Trac] #9610: line breaks in functions.php result in invalid XML in RSS feed

WordPress Trac wp-trac at lists.automattic.com
Tue Apr 21 13:49:55 GMT 2009


#9610: line breaks in functions.php result in invalid XML in RSS feed
--------------------------+-------------------------------------------------
 Reporter:  rmckillen     |       Owner:            
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Feeds         |     Version:            
 Severity:  normal        |    Keywords:            
--------------------------+-------------------------------------------------
 This issue impacts the functions.php file regardless of theme in use, so
 the problem is with the Wordpress core.

 If the functions.php file contains these 2 lines of code, there are no
 problems:

 <?php //code ?>
 <?php //more code ?>

 If the functions.php file contains these 3 lines (2nd line being blank) of
 code:

 <?php //code ?>

 <?php //more code ?>

 The primary RSS feed generated by Wordpress contains invalid XML.
 According to Firefox:

 XML Parsing Error: XML or text declaration not at start of entity
 Location: http://popjab.com/feed/
 Line Number 2, Column 1:
 <?xml version="1.0" encoding="UTF-8"?>
 ^

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9610>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list