[wp-trac] [WordPress Trac] #9094: posts_nav_link() vs. empty <p></p>'s

WordPress Trac wp-trac at lists.automattic.com
Wed Feb 11 19:31:39 GMT 2009

#9094: posts_nav_link() vs. empty <p></p>'s
 Reporter:  jidanni       |       Owner:  anonymous
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  2.8      
Component:  Template      |     Version:           
 Severity:  normal        |    Keywords:           
 Gentlemen, observe all the back bending one needs to do if one
 doesn't want the possibility of making empty <p></p>'s:
 ob_start(); posts_nav_link(); $z=ob_get_contents(); ob_end_clean();
   if($z){echo "<p>$z</p>\n";}
 This is all because there is no way around the 'echo' in
 posts_nav_link(), in order so one can test its output before using it.

 You may say "ho hum, so what if you make an empty <p></p>".

 But I think that is very stupid.

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

More information about the wp-trac mailing list