WordPress.org

Make WordPress Core

Ticket #25205: submenu-as-parent.patch

File submenu-as-parent.patch, 345 bytes (added by plocha, 5 years ago)
  • menu-header.php

     
    181181
    182182<?php
    183183
    184 _wp_menu_output( $menu, $submenu );
     184_wp_menu_output( $menu, $submenu, apply_filters( 'submenu_as_parent', true ) );
    185185do_action( 'adminmenu' );
    186186
    187187?>