Ticket #19514: 19514.diff
File 19514.diff, 754 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/includes/nav-menu.php
614 614 615 615 $post_type_name = $post_type['args']->name; 616 616 617 // Paginate browsing for large numbers of post objects. 618 $per_page = 50; 617 /** 618 * Filter the amount of items per page. 619 * 620 * @since 4.2 621 * 622 * @param int The amount of items to show per page. 623 */ 624 $per_page = apply_filters( 'wp_nav_menu_posts_per_page' , 50 ) 619 625 $pagenum = isset( $_REQUEST[$post_type_name . '-tab'] ) && isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 1; 620 626 $offset = 0 < $pagenum ? $per_page * ( $pagenum - 1 ) : 0; 621 627