1 | Index: nav-menu.php |
---|
2 | =================================================================== |
---|
3 | --- nav-menu.php (revision 19587) |
---|
4 | +++ nav-menu.php (working copy) |
---|
5 | |
---|
6 | @@ -584,7 +585,7 @@ |
---|
7 | $post_type_name = $post_type['args']->name; |
---|
8 | |
---|
9 | // paginate browsing for large numbers of post objects |
---|
10 | - $per_page = 50; |
---|
11 | + $per_page = apply_filters( 'wp_nav_menu_item_post_type_per_page' , 50); |
---|
12 | $pagenum = isset( $_REQUEST[$post_type_name . '-tab'] ) && isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 1; |
---|
13 | $offset = 0 < $pagenum ? $per_page * ( $pagenum - 1 ) : 0; |
---|
14 | |
---|