WordPress.org

Make WordPress Core

Ticket #19365: 19365.patch

File 19365.patch, 660 bytes (added by chriscct7, 4 years ago)

Refresh with proper base and formatting

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

     
    712712                                $recent_args = array_merge( $args, array( 'orderby' => 'post_date', 'order' => 'DESC', 'posts_per_page' => 15 ) );
    713713                                $most_recent = $get_posts->query( $recent_args );
    714714                                $args['walker'] = $walker;
     715                                $most_recent = apply_filters( 'nav_menu_items_' . $post_type_name . '_recent', $most_recent );
    715716                                echo walk_nav_menu_tree( array_map('wp_setup_nav_menu_item', $most_recent), 0, (object) $args );
    716717                                ?>
    717718                        </ul>