From d968a74e2a9b4e34e6ccb115bc71ff47794ceed1 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 20 Sep 2019 17:06:57 +0000 Subject: [PATCH] Docs: Add `@since` tag for the new `$position` argument added to `add_submenu_page()` and related functions in [46197]. See #39776. Built from https://develop.svn.wordpress.org/trunk@46198 git-svn-id: http://core.svn.wordpress.org/trunk@46010 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/plugin.php | 13 ++++++++++++- wp-includes/version.php | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php index 3d138d176f..1aa336e849 100644 --- a/wp-admin/includes/plugin.php +++ b/wp-admin/includes/plugin.php @@ -1320,6 +1320,7 @@ function add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $func * that the user has the required capability as well. * * @since 1.5.0 + * @since 5.3.0 Added the `$position` parameter. * * @global array $submenu * @global array $menu @@ -1339,7 +1340,6 @@ function add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $func * to be compatible with sanitize_key(). * @param callable $function The function to be called to output the content for this page. * @param int $position The position in the menu order this item should appear. - * * @return false|string The resulting page's hook_suffix, or false if the user does not have the capability required. */ function add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function = '', $position = null ) { @@ -1431,6 +1431,7 @@ function add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, * that the user has the required capability as well. * * @since 1.5.0 + * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. @@ -1454,6 +1455,7 @@ function add_management_page( $page_title, $menu_title, $capability, $menu_slug, * that the user has the required capability as well. * * @since 1.5.0 + * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. @@ -1477,6 +1479,7 @@ function add_options_page( $page_title, $menu_title, $capability, $menu_slug, $f * that the user has the required capability as well. * * @since 2.0.0 + * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. @@ -1500,6 +1503,7 @@ function add_theme_page( $page_title, $menu_title, $capability, $menu_slug, $fun * that the user has the required capability as well. * * @since 3.0.0 + * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. @@ -1523,6 +1527,7 @@ function add_plugins_page( $page_title, $menu_title, $capability, $menu_slug, $f * that the user has the required capability as well. * * @since 2.1.3 + * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. @@ -1551,6 +1556,7 @@ function add_users_page( $page_title, $menu_title, $capability, $menu_slug, $fun * that the user has the required capability as well. * * @since 2.7.0 + * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. @@ -1574,6 +1580,7 @@ function add_dashboard_page( $page_title, $menu_title, $capability, $menu_slug, * that the user has the required capability as well. * * @since 2.7.0 + * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. @@ -1597,6 +1604,7 @@ function add_posts_page( $page_title, $menu_title, $capability, $menu_slug, $fun * that the user has the required capability as well. * * @since 2.7.0 + * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. @@ -1620,6 +1628,7 @@ function add_media_page( $page_title, $menu_title, $capability, $menu_slug, $fun * that the user has the required capability as well. * * @since 2.7.0 + * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. @@ -1643,6 +1652,7 @@ function add_links_page( $page_title, $menu_title, $capability, $menu_slug, $fun * that the user has the required capability as well. * * @since 2.7.0 + * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. @@ -1666,6 +1676,7 @@ function add_pages_page( $page_title, $menu_title, $capability, $menu_slug, $fun * that the user has the required capability as well. * * @since 2.7.0 + * @since 5.3.0 Added the `$position` parameter. * * @param string $page_title The text to be displayed in the title tags of the page when the menu is selected. * @param string $menu_title The text to be used for the menu. diff --git a/wp-includes/version.php b/wp-includes/version.php index 953c1455fe..8b6aea70e4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.3-alpha-46197'; +$wp_version = '5.3-alpha-46198'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.