From 7f2684100c9c093546fb8cd221f6f3d3bae706ab Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 19 Nov 2024 22:16:52 +0000 Subject: [PATCH] Toolbar: Allow the Learn WordPress link to be localized. The Learn WordPress website is supposed to automatically redirect to the correct locale according to the browser's language settings, however that may not work as expected in some cases. This commit brings consistency with the other WordPress.org links, which can be localized as appropriate. Follow-up to [56720]. Props timse201, ruturajraval2305, yogeshbhutkar, ajayghaghretiya-multidots, swissspidy, sabernhardt, im3dabasia1, mukesh27. Fixes #62459. git-svn-id: https://develop.svn.wordpress.org/trunk@59425 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/admin-bar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/admin-bar.php b/src/wp-includes/admin-bar.php index 0d7c3b63c70ef..9bb26e7ed792c 100644 --- a/src/wp-includes/admin-bar.php +++ b/src/wp-includes/admin-bar.php @@ -205,7 +205,7 @@ function wp_admin_bar_wp_menu( $wp_admin_bar ) { 'parent' => 'wp-logo-external', 'id' => 'learn', 'title' => __( 'Learn WordPress' ), - 'href' => 'https://learn.wordpress.org/', + 'href' => __( 'https://learn.wordpress.org/' ), ) );