[wp-trac] [WordPress Trac] #12407: Inconsistent link generation between (next|previous)_post_link and (next|previous)_posts_link functions

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 27 07:13:51 UTC 2010


#12407: Inconsistent link generation between (next|previous)_post_link and
(next|previous)_posts_link functions
--------------------------+-------------------------------------------------
 Reporter:  solarissmoke  |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  low           |   Milestone:  3.1
Component:  Themes        |     Version:     
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------
 There is an inconsistency in the way the functions
 {{{next_post_link()}}}/{{{previous_post_link()}}} (used in single.php) and
 {{{next_posts_link()}}}/{{{previous_posts_link()}}} (used in index.php and
 archive.php) are used in the default themes.

 The current behaviour (in the default themes) is as follows:

 - next_post_link() and previous_post_link() generate an anchor tag with
 post title plus either {{{»}}} or {{{«}}} '''outside''' the
 tag.

 - next_posts_link() and previous_posts_link() generate an anchor tag with
 post title and {{{»}}} or {{{«}}} '''inside''' the anchor tag.

 Since these functions are all used in the same visual space
 (div.navigation) the position of the {{{»}}}/{{{«}}} (inside
 out outside of the anchor tag) should be consistent. Personally I prefer
 having the additional text inside the anchor tag.

 It just requires changing the arguments supplied to the functions in the
 themes. Proposed patch to follow.

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


More information about the wp-trac mailing list