Support » Plugin: WP-PageNavi » [Plugin: WP-PageNavi] Query arguments not available for first page link

  • Resolved alexk45

    (@alexk45)


    When on a page that is greater than page 1, the links in pagination for page 1 and the ‘previousposts’ link do not include any query arguments.

    This is important for 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.

    I fixed this error in the code in link-template.php on line 1421.
    I changed the ‘if’ clause from if( $pagenum > 1 ) to if( $pagenum > 0 ).

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

    Thanks

    http://wordpress.org/extend/plugins/wp-pagenavi/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author scribu

    (@scribu)

    link-template.php is a core WordPress file.

    You should open a ticket for your proposed change in the WordPress trac:

    http://core.trac.wordpress.org/

    alexk45

    (@alexk45)

    < face palm >
    Thanks a lot scribu, I just did the word search in my IDE and didn’t bother to look at the file location. Thought it was just part of the wp-pagenavi plugin.

    I have added the ticket to WordPress trac.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WP-PageNavi] Query arguments not available for first page link’ is closed to new replies.