From 74df859ebf507cf9aea6ac909ba74b6f6ce2fca0 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Thu, 2 Jan 2014 02:45:29 +0000 Subject: [PATCH] Inline documentation for hooks in wp-admin/menu-header.php. Props piontkowski, kpdesign. Fixes #26051. git-svn-id: https://develop.svn.wordpress.org/trunk@26893 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/menu-header.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/wp-admin/menu-header.php b/src/wp-admin/menu-header.php index 6b775f4c08..a32f3a514d 100644 --- a/src/wp-admin/menu-header.php +++ b/src/wp-admin/menu-header.php @@ -19,7 +19,17 @@ $self = preg_replace('|^.*/plugins/|i', '', $self); $self = preg_replace('|^.*/mu-plugins/|i', '', $self); global $menu, $submenu, $parent_file; //For when admin-header is included from within a function. -$parent_file = apply_filters("parent_file", $parent_file); // For plugins to move submenu tabs around. + +/** + * Filter the parent file of an admin menu sub-menu item. + * + * Allows plugins to move sub-menu items around. + * + * @since MU + * + * @param string $parent_file The parent file. + */ +$parent_file = apply_filters( 'parent_file', $parent_file ); get_admin_page_parent(); @@ -195,6 +205,11 @@ function _wp_menu_output( $menu, $submenu, $submenu_as_parent = true ) {