Toolbar: Update Documentation and Support links.
This replaces the Codex URL in the "WordPress" section of the admin bar with the HelpHub URL, and updates the Support link to point to the forums. Follow-up to [45140], [45412]. Props audrasjb. Fixes #52352. See #46790, #47239. Built from https://develop.svn.wordpress.org/trunk@50015 git-svn-id: http://core.svn.wordpress.org/trunk@49716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -166,13 +166,13 @@ function wp_admin_bar_wp_menu( $wp_admin_bar ) {
|
||||
)
|
||||
);
|
||||
|
||||
// Add Codex link.
|
||||
// Add documentation link.
|
||||
$wp_admin_bar->add_node(
|
||||
array(
|
||||
'parent' => 'wp-logo-external',
|
||||
'id' => 'documentation',
|
||||
'title' => __( 'Documentation' ),
|
||||
'href' => __( 'https://codex.wordpress.org/' ),
|
||||
'href' => __( 'https://wordpress.org/support/' ),
|
||||
)
|
||||
);
|
||||
|
||||
@@ -182,7 +182,7 @@ function wp_admin_bar_wp_menu( $wp_admin_bar ) {
|
||||
'parent' => 'wp-logo-external',
|
||||
'id' => 'support-forums',
|
||||
'title' => __( 'Support' ),
|
||||
'href' => __( 'https://wordpress.org/support/' ),
|
||||
'href' => __( 'https://wordpress.org/support/forums/' ),
|
||||
)
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user