From 56e77d8928a006eacff07cecf8c1a732b8475c2c Mon Sep 17 00:00:00 2001 From: Gary Pendergast Date: Mon, 14 Jan 2019 23:12:50 +0000 Subject: [PATCH] Docs: Improve the docblock of `wp_admin_bar_edit_menu()`. What age were you when you learned that there's a `$user_id` global, as well as `$user_ID` global? I was today years old. Props pento, mukesh27. Fixes #43448. Built from https://develop.svn.wordpress.org/trunk@44586 git-svn-id: http://core.svn.wordpress.org/trunk@44417 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/admin-bar.php | 2 ++ wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index d3aec38341..cbb2fd32fb 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -677,6 +677,8 @@ function wp_admin_bar_shortlink_menu( $wp_admin_bar ) { * * @global WP_Term $tag * @global WP_Query $wp_the_query + * @global int $user_id The ID of the user being edited. Not to be confused with the + * global $user_ID, which contains the ID of the current user. * * @param WP_Admin_Bar $wp_admin_bar */ diff --git a/wp-includes/version.php b/wp-includes/version.php index 1ec9aab564..5cee92a0a4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.1-beta1-44585'; +$wp_version = '5.1-beta1-44586'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.