Index: src/wp-includes/link-template.php
===================================================================
--- src/wp-includes/link-template.php	(revision 34913)
+++ src/wp-includes/link-template.php	(working copy)
@@ -10,8 +10,11 @@
  * Display the permalink for the current post.
  *
  * @since 1.2.0
+ * @since 4.4.0 $id param
+ *
+ * @param int $id Optional. Post ID. 
  */
-function the_permalink() {
+function the_permalink( $id = 0 ) {
 	/**
 	 * Filter the display of the permalink for the current post.
 	 *
@@ -19,7 +22,7 @@
 	 *
 	 * @param string $permalink The permalink for the current post.
 	 */
-	echo esc_url( apply_filters( 'the_permalink', get_permalink() ) );
+	echo esc_url( apply_filters( 'the_permalink', get_permalink( $id ) ) );
 }
 
 /**
