From 06bf2f9e66fc51588a6609bf58c351527f03fbd8 Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Thu, 11 Nov 2010 10:24:56 +0000 Subject: [PATCH] Link the shortlink button to the shortlink. Props caesarsgrunt see #14772. git-svn-id: https://develop.svn.wordpress.org/trunk@16287 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/admin-bar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index d5cab62f6a..7e6b6abc70 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -164,7 +164,7 @@ function wp_admin_bar_shortlink_menu() { $short = wp_get_shortlink( 0, 'query' ); if ( ! empty( $short) ) - $wp_admin_bar->add_menu( array( 'id' => 'get-shortlink', 'title' => __( 'Shortlink' ), 'href' => '', ) ); + $wp_admin_bar->add_menu( array( 'id' => 'get-shortlink', 'title' => __( 'Shortlink' ), 'href' => $short, ) ); } /**