Make WordPress Core

Ticket #26051: 26051.diff

File 26051.diff, 946 bytes (added by piontkowski, 11 years ago)
  • 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 * Filters parent_file variable, and allows plugins to move submenu tabs around.
     25 *
     26 * @since MU
     27 *
     28 * @param string $parent_file The parent file for the screen per the admin menu system.
     29 */
     30$parent_file = apply_filters("parent_file", $parent_file);
     31
    2432get_admin_page_parent();
    2533
    2634/**
     
    181189<?php
    182190
    183191_wp_menu_output( $menu, $submenu );
     192
     193/**
     194 * Fires after the admin menu is created.
     195 *
     196 * @since 2.5.0
     197 */
    184198do_action( 'adminmenu' );
    185199
    186200?>