Changeset 17202 for trunk/wp-admin/includes/class-wp-list-table.php
- Timestamp:
- 01/01/2011 11:19:26 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/class-wp-list-table.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-list-table.php
r17156 r17202 481 481 $page_links = array(); 482 482 483 $disable_first = $disable_last = ''; 484 if ( $current == 1 ) 485 $disable_first = ' disabled'; 486 if ( $current == $total_items ) 487 $disable_last = ' disabled'; 488 483 489 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 484 'first-page' ,490 'first-page' . $disable_first, 485 491 esc_attr__( 'Go to the first page' ), 486 492 esc_url( remove_query_arg( 'paged', $current_url ) ), … … 489 495 490 496 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 491 'prev-page' ,497 'prev-page' . $disable_first, 492 498 esc_attr__( 'Go to the previous page' ), 493 499 esc_url( add_query_arg( 'paged', max( 1, $current-1 ), $current_url ) ), … … 505 511 506 512 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 507 'next-page' ,513 'next-page' . $disable_last, 508 514 esc_attr__( 'Go to the next page' ), 509 515 esc_url( add_query_arg( 'paged', min( $total_pages, $current+1 ), $current_url ) ), … … 512 518 513 519 $page_links[] = sprintf( "<a class='%s' title='%s' href='%s'>%s</a>", 514 'last-page' ,520 'last-page' . $disable_last, 515 521 esc_attr__( 'Go to the last page' ), 516 522 esc_url( add_query_arg( 'paged', $total_pages, $current_url ) ),
Note: See TracChangeset
for help on using the changeset viewer.