• To my opinion there is a bug in
    wp-admin/includes/class-wp-list-table.php: protected function pagination( $which )

    See https://developer.wordpress.org/reference/classes/wp_list_table/pagination/

    On line 1018 it reads:

    			
    "%s<input class='current-page' id='current-page-selector' type='text' name='paged' value='%s' size='%d' aria-describedby='table-paging' /><span class='tablenav-paging-text'>",
    
    

    there is an input field with the current page shown.
    You see this e.g. on top of the list generated by ‘Users -> All users’ if there are more than the pagesize users.

    However, editing this number has no effect because there is no onchange event handler and ther is also not a ‘go to’ button.

    What is the benefit of a not working input field?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I just press Enter after entering a number in the field. This triggers the form dispatch and you see the specified page afterwards. Clicking on Apply next to the filters also does that, since everything is a form.

    If you want to suggest any optimization here, you can bring it to the core team: https://core.trac.wordpress.org/newticket

    Thread Starter Jacob N. Breetvelt

    (@opajaap)

    Thank you for your reply.

    Over ten years i use wordpress and develop plugins on a dayly basis, but i never discovered the function of the enter key for this purpose.

    I also did not suspect the Apply button to do it because going to a different page is not a bulk action.

    So either i am very dumb or they are no obvious features.

    I will issue an enhancement request, to either add an onchange event handler or add some text (e.g. to the Help section) or title to the input field to point the users in the right direction.

    Thanx again. call closed

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Table pagination issue’ is closed to new replies.