WordPress.org

Make WordPress Core

Ticket #19514: nav-menu-patch.patch

File nav-menu-patch.patch, 565 bytes (added by wpsmith, 8 years ago)
Line 
1Index: 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