From 441001f29fce73ab8ac2dd6e904251cf44d1fd19 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 3 Apr 2020 17:23:11 +0000 Subject: [PATCH] Docs: Add documentation for the `$parent` parameter of `get_admin_page_parent()`. Props subrataemfluence. Fixes #45849. Built from https://develop.svn.wordpress.org/trunk@47546 git-svn-id: http://core.svn.wordpress.org/trunk@47321 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/plugin.php | 12 +++++++----- wp-includes/version.php | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php index 2de370c64d..9ba6203a53 100644 --- a/wp-admin/includes/plugin.php +++ b/wp-admin/includes/plugin.php @@ -1812,15 +1812,17 @@ function menu_page_url( $menu_slug, $echo = true ) { * @since 1.5.0 * * @global string $parent_file - * @global array $menu - * @global array $submenu + * @global array $menu + * @global array $submenu * @global string $pagenow * @global string $typenow * @global string $plugin_page - * @global array $_wp_real_parent_file - * @global array $_wp_menu_nopriv - * @global array $_wp_submenu_nopriv + * @global array $_wp_real_parent_file + * @global array $_wp_menu_nopriv + * @global array $_wp_submenu_nopriv * + * @param string $parent The slug name for the parent menu (or the file name of a standard + * WordPress admin page). Default empty string. * @return string The parent file of the current admin page. */ function get_admin_page_parent( $parent = '' ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index dabebd8eba..4998e93997 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-47545'; +$wp_version = '5.5-alpha-47546'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.