Link the shortlink button to the shortlink. Props caesarsgrunt see #14772.
git-svn-id: http://svn.automattic.com/wordpress/trunk@16287 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8885e4f78e
commit
58c936f7df
|
@ -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, ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue