[wp-trac] [WordPress Trac] #6128: the_content spits out bogus BR tag

WordPress Trac wp-trac at lists.automattic.com
Fri Mar 7 21:00:19 GMT 2008


#6128: the_content spits out bogus BR tag
----------------------+-----------------------------------------------------
 Reporter:  kickslop  |       Owner:  anonymous
     Type:  defect    |      Status:  new      
 Priority:  normal    |   Milestone:  2.6      
Component:  Template  |     Version:  2.3.3    
 Severity:  normal    |    Keywords:           
----------------------+-----------------------------------------------------
 When calling the_content() via, say... archives.php, a BR tag is spit out
 even if the page is empty.

 Let me try explaining that in more detail.

 Calling the_content() from a page template PHP file (like archives.php in
 some themes) should drag in the contents of the actual page itself, as
 written by the page author.  When the Wordpress page content is BLANK
 (read: "just spit out only what the page template generates"),
 the_content() is still generating a BR tag.

 It causes bogus whitespace that is not wanted.

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


More information about the wp-trac mailing list