Make WordPress Core

Ticket #26051: 26051.2.diff

File 26051.2.diff, 946 bytes (added by kpdesign, 11 years ago)

Second 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 a submenu item in the Multisite Network admin menu.
     25 *
     26 * @since MU
     27 *
     28 * @param string $parent_file The parent file for the current screen.
     29 */
     30$parent_file = apply_filters( 'parent_file', $parent_file );
     31
    2432get_admin_page_parent();
    2533
    2634/**
     
    195203<?php
    196204
    197205_wp_menu_output( $menu, $submenu );
     206/**
     207 * Fires after the admin menu is created.
     208 *
     209 * @since 2.5.0
     210 */
    198211do_action( 'adminmenu' );
    199212
    200213?>