[wp-trac] Re: [WordPress Trac] #3039: <?php wp_link_pages(); ?> related bug in all versions of WP

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 24 01:25:32 GMT 2006


#3039: <?php wp_link_pages(); ?> related bug in all versions of WP
-----------------------------------+----------------------------------------
 Reporter:  resist                 |        Owner:  markjaquith
     Type:  defect                 |       Status:  reopened   
 Priority:  normal                 |    Milestone:             
Component:  General                |      Version:  2.1        
 Severity:  minor                  |   Resolution:             
 Keywords:  has-patch 2nd-opinion  |  
-----------------------------------+----------------------------------------
Comment (by RuddO):

 To steal one of Colbert's famous lines, "I feel you, man".  But shouldn't
 the check to see if that's a valid post page number be done earlier?  I
 mean, at post retrieval time, when the $posts array is being composed (I
 think) it's not too late to emit headers, then a small check like the one
 you've written could be implemented, something like if (is_Single or
 is_page) then (if page number over bounds) then do_redirect

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


More information about the wp-trac mailing list