WordPress.org

Ready to get started?Download WordPress

Forums

WP-PageNavi
[resolved] Query arguments not available for first page link (3 posts)

  1. alexk45
    Member
    Posted 2 years ago #

    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/

  2. scribu
    Member
    Plugin Author

    Posted 2 years ago #

    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/

  3. alexk45
    Member
    Posted 2 years ago #

    < 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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic