From a27059766b99939dd834f355ae453b3b6764edab Mon Sep 17 00:00:00 2001 From: costdev Date: Tue, 26 Sep 2023 16:29:20 +0000 Subject: [PATCH] Toolbar: Link to Learn WordPress in the WordPress Logo menu. This aims to make the various resources on learn.wordpress.org more easily available. Props jeherve, mikinc860, audrasjb, sabernhardt, courane01, devmuhib, dhrumilk, estelaris, hellofromTonya. Fixes #58820. Built from https://develop.svn.wordpress.org/trunk@56720 git-svn-id: http://core.svn.wordpress.org/trunk@56232 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/admin-bar.php | 10 ++++++++++ wp-includes/version.php | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index d58e9874ed..b22a7a77c3 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -194,6 +194,16 @@ function wp_admin_bar_wp_menu( $wp_admin_bar ) { ) ); + // Add learn link. + $wp_admin_bar->add_node( + array( + 'parent' => 'wp-logo-external', + 'id' => 'learn', + 'title' => __( 'Learn WordPress' ), + 'href' => 'https://learn.wordpress.org/', + ) + ); + // Add forums link. $wp_admin_bar->add_node( array( diff --git a/wp-includes/version.php b/wp-includes/version.php index e64aa85cc3..e8860f2e1f 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.4-alpha-56719'; +$wp_version = '6.4-alpha-56720'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.