[wp-trac] [WordPress Trac] #10867: next_post_link() and previous_post_link() should be allowed in the loop, even if is_single()

WordPress Trac wp-trac at lists.automattic.com
Mon Apr 5 22:03:46 UTC 2010


#10867: next_post_link() and previous_post_link() should be allowed in the loop,
even if is_single()
-----------------------------------+----------------------------------------
 Reporter:  jobjorn                |        Owner:          
     Type:  enhancement            |       Status:  reopened
 Priority:  low                    |    Milestone:  3.0     
Component:  Themes                 |      Version:          
 Severity:  normal                 |   Resolution:          
 Keywords:  has-patch 2nd-opinion  |  
-----------------------------------+----------------------------------------
Changes (by mdawaffe):

  * status:  closed => reopened
  * resolution:  fixed =>
  * severity:  trivial => normal


Comment:

 There are several themes (Journalist, Garland, presumably many others)
 that use previous_post_link()/next_post_link() on index.php without
 wrapping them in is_singular() conditionals.

 Prior to 3.0, the links would not show unless the current page was
 is_singular().  Now they show up on all pages including the front page.

 I like the 3.0 versions better (more flexible), but they break some
 themes.

 Reopening.

 Could leave as is.
 Could revert.
 Could add a new argument (or convert it them to wp_parse_args() based
 functions).
 Could ...?

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10867#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list