[wp-trac] [WordPress Trac] #13578: wp_link_pages isn't fully functional and doesn't include require style information

WordPress Trac wp-trac at lists.automattic.com
Thu May 27 16:10:31 UTC 2010


#13578: wp_link_pages isn't fully functional and doesn't include require style
information
--------------------------+-------------------------------------------------
 Reporter:  brianlayman   |       Owner:                        
     Type:  defect (bug)  |      Status:  new                   
 Priority:  normal        |   Milestone:  Unassigned            
Component:  Themes        |     Version:  3.0                   
 Severity:  normal        |    Keywords:  theme,wp_linkpages,css
--------------------------+-------------------------------------------------
 Since paging within a post was dropped as a quicktag, wp_link_pages hasn't
 been kept up to date with the new themes and has had some major flaws
 since it was first created.  3.0 has a number of enhancements to this
 function already, but it still has several flaws. These changes will allow
 theme authors to use this built in function and have to not overwrite it
 their themes.

 The attached patch is already deployed at b5media. And makes the following
 changes:[[BR]]
 *It allows you to specify the separator for numbers. [[BR]]
 *The seperator is now only use between two numbers instead of always being
 appended to the end of a number. [[BR]]
 *The function no longer produces an empty anchor tag when next or prev is
 not to be displayed. Up to now it left the link in but didn't include any
 inner text.[[BR]]
 *Adds the css classes pag_nav_num, pag_nav_first, pag_nav_current,
 pag_nav_prev, pag_nav_next & pag_nav_last allowing style specifications
 for all output conditions[[BR]]

 I think this should give everyone the freedom to do whatever they want
 with this function now while being mostly backwards compatible.  I do drop
 the empty links, but I can't see how anyone would have styled specifically
 for them any way.

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


More information about the wp-trac mailing list