Skip to content

Commit a5c6a76

Browse files
committed
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. git-svn-id: https://develop.svn.wordpress.org/trunk@56720 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 5e09e5e commit a5c6a76

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/wp-includes/admin-bar.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,16 @@ function wp_admin_bar_wp_menu( $wp_admin_bar ) {
194194
)
195195
);
196196

197+
// Add learn link.
198+
$wp_admin_bar->add_node(
199+
array(
200+
'parent' => 'wp-logo-external',
201+
'id' => 'learn',
202+
'title' => __( 'Learn WordPress' ),
203+
'href' => 'https://learn.wordpress.org/',
204+
)
205+
);
206+
197207
// Add forums link.
198208
$wp_admin_bar->add_node(
199209
array(

0 commit comments

Comments
 (0)