[wp-trac] [WordPress Trac] #21207: Link-template pagination link for page 1 missing query string args

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 9 20:28:25 UTC 2012


#21207: Link-template pagination link for page 1 missing query string args
--------------------------+-----------------------------
 Reporter:  alexk45       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  3.4
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 In paginated pages, when on a page that is greater than page 1, the link
 for page 1 and the 'previousposts' link do not include any query
 arguments. This is fine if not including the first page argument, but not
 for other arguments in the query string.

 For example pages that show results for form searches. The search criteria
 are stored with the GET method as query strings in the URL and need to be
 maintained from page to page as the user pages through their results.

 This is in /wp-includes/link-template.php on line 1421.
 A probable fix is the 'if' clause from if( $pagenum > 1 ) changed to if(
 $pagenum > 0 ).

 I was wondering if you can apply this fix to future updates?

 Thanks

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


More information about the wp-trac mailing list