Make WordPress Core

Ticket #26051: 26051.3.diff

File 26051.3.diff, 953 bytes (added by DrewAPicture, 11 years ago)

Final pass

  • src/wp-admin/menu-header.php

     
    1919$self = preg_replace('|^.*/mu-plugins/|i', '', $self);
    2020
    2121global $menu, $submenu, $parent_file; //For when admin-header is included from within a function.
    22 $parent_file = apply_filters("parent_file", $parent_file); // For plugins to move submenu tabs around.
    2322
     23/**
     24 * Filter the parent file of an admin menu sub-menu item.
     25 *
     26 * Allows plugins to move sub-menu items around.
     27 *
     28 * @since MU
     29 *
     30 * @param string $parent_file The parent file.
     31 */
     32$parent_file = apply_filters( 'parent_file', $parent_file );
     33
    2434get_admin_page_parent();
    2535
    2636/**
     
    195205<?php
    196206
    197207_wp_menu_output( $menu, $submenu );
     208/**
     209 * Fires after the admin menu has been output.
     210 *
     211 * @since 2.5.0
     212 */
    198213do_action( 'adminmenu' );
    199214
    200215?>