diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index 2c815542ad..de76f45aae 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -2421,13 +2421,15 @@ function wp_shortlink_header() { * @param string $after Optional HTML to display after the link. */ function the_shortlink( $text = '', $title = '', $before = '', $after = '' ) { + $post = get_post(); + if ( empty( $text ) ) $text = __('This is the short link.'); if ( empty( $title ) ) $title = the_title_attribute( array( 'echo' => false ) ); - $shortlink = wp_get_shortlink(); + $shortlink = wp_get_shortlink( $post->ID ); if ( !empty( $shortlink ) ) { $link = '' . $text . '';