From 145deeeada93c899263f5620af38fd2819746564 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 1 Oct 2015 00:23:28 +0000 Subject: [PATCH] Add `'submenu_file'` filter for the file of an admin menu sub-menu item. This complements the `'parent_file'` filter added in [12712]. Props swissspidy, kraftbj. Fixes #24531. Built from https://develop.svn.wordpress.org/trunk@34722 git-svn-id: http://core.svn.wordpress.org/trunk@34686 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/menu-header.php | 10 ++++++++++ wp-includes/version.php | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/wp-admin/menu-header.php b/wp-admin/menu-header.php index 013686106f..0f067f247e 100644 --- a/wp-admin/menu-header.php +++ b/wp-admin/menu-header.php @@ -36,6 +36,16 @@ global $menu, $submenu, $parent_file; */ $parent_file = apply_filters( 'parent_file', $parent_file ); +/** + * Filter the file of an admin menu sub-menu item. + * + * @since 4.4.0 + * + * @param string $submenu_file The submenu file. + * @param string $parent_file The submenu item's parent file. + */ +$submenu_file = apply_filters( 'submenu_file', $submenu_file, $parent_file ); + get_admin_page_parent(); /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 24cc52a3e3..a427ea30a4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-alpha-34721'; +$wp_version = '4.4-alpha-34722'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.