WordPress.org

Make WordPress Core

Ticket #24531: 24531.diff

File 24531.diff, 528 bytes (added by swissspidy, 6 years ago)
  • src/wp-admin/menu-header.php

    diff --git src/wp-admin/menu-header.php src/wp-admin/menu-header.php
    index 0136861..b854398 100644
    global $menu, $submenu, $parent_file; 
    3636 */
    3737$parent_file = apply_filters( 'parent_file', $parent_file );
    3838
     39/**
     40 * Filter the file of an admin menu sub-menu item.
     41 *
     42 * @since 4.4.0
     43 *
     44 * @param string $submenu_file The submenu file.
     45 */
     46$submenu_file = apply_filters( 'submenu_file', $submenu_file );
     47
    3948get_admin_page_parent();
    4049
    4150/**