Index: src/wp-admin/edit-form-advanced.php
===================================================================
--- src/wp-admin/edit-form-advanced.php	(revision 51844)
+++ src/wp-admin/edit-form-advanced.php	(working copy)
@@ -536,18 +536,6 @@
 	if ( $viewable ) :
 		$sample_permalink_html = $post_type_object->public ? get_sample_permalink_html( $post->ID ) : '';
 
-		// As of 4.4, the Get Shortlink button is hidden by default.
-		if ( has_filter( 'pre_get_shortlink' ) || has_filter( 'get_shortlink' ) ) {
-			$shortlink = wp_get_shortlink( $post->ID, 'post' );
-
-			if ( ! empty( $shortlink ) && $shortlink !== $permalink && home_url( '?page_id=' . $post->ID ) !== $permalink ) {
-				$sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr( $shortlink ) . '" />' .
-					'<button type="button" class="button button-small" onclick="prompt(&#39;URL:&#39;, jQuery(\'#shortlink\').val());">' .
-					__( 'Get Shortlink' ) .
-					'</button>';
-			}
-		}
-
 		if ( $post_type_object->public
 			&& ! ( 'pending' === get_post_status( $post ) && ! current_user_can( $post_type_object->cap->publish_posts ) )
 		) {
Index: src/wp-admin/includes/post.php
===================================================================
--- src/wp-admin/includes/post.php	(revision 51844)
+++ src/wp-admin/includes/post.php	(working copy)
@@ -1530,6 +1530,18 @@
 	 */
 	$return = apply_filters( 'get_sample_permalink_html', $return, $post->ID, $new_title, $new_slug, $post );
 
+	// As of 4.4, the Get Shortlink button is hidden by default.
+	if ( has_filter( 'pre_get_shortlink' ) || has_filter( 'get_shortlink' ) ) {
+		$shortlink = wp_get_shortlink( $post->ID, 'post' );
+
+		if ( ! empty( $shortlink ) && $shortlink !== $permalink && home_url( '?page_id=' . $post->ID ) !== $permalink ) {
+			$return .= '<input id="shortlink" type="hidden" value="' . esc_attr( $shortlink ) . '" />' .
+				'<button type="button" class="button button-small" onclick="prompt(&#39;URL:&#39;, jQuery(\'#shortlink\').val());">' .
+				__( 'Get Shortlink' ) .
+				'</button>';
+		}
+	}
+
 	return $return;
 }
 
