Make WordPress Core

Ticket #19514: 19514.2.diff

File 19514.2.diff, 755 bytes (added by MikeHansenMe, 10 years ago)

missed a ;

  • src/wp-admin/includes/nav-menu.php

     
    614614
    615615        $post_type_name = $post_type['args']->name;
    616616
    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 );
    619625        $pagenum = isset( $_REQUEST[$post_type_name . '-tab'] ) && isset( $_REQUEST['paged'] ) ? absint( $_REQUEST['paged'] ) : 1;
    620626        $offset = 0 < $pagenum ? $per_page * ( $pagenum - 1 ) : 0;
    621627