diff --git a/src/wp-content/themes/twentyseventeen/inc/template-tags.php b/src/wp-content/themes/twentyseventeen/inc/template-tags.php
index 6cdb6c6be5a53..0a543e16a4010 100644
--- a/src/wp-content/themes/twentyseventeen/inc/template-tags.php
+++ b/src/wp-content/themes/twentyseventeen/inc/template-tags.php
@@ -110,22 +110,23 @@ function twentyseventeen_entry_footer() {
if ( ! function_exists( 'twentyseventeen_edit_link' ) ) :
/**
- * Returns an accessibility-friendly link to edit a post or page.
+ * Displays an accessibility-friendly link to edit a post or page.
*
- * This also gives a little context about what exactly we're editing
- * (post or page?) so that users understand a bit more where they are in terms
- * of the template hierarchy and their content. Helpful when/if the single-page
- * layout with multiple posts/pages shown gets confusing.
+ * @since Twenty Seventeen 1.0
+ * @since Twenty Seventeen 4.1 Added `$post_id` parameter.
+ *
+ * @param int $post_id Post ID. Default 0.
*/
- function twentyseventeen_edit_link() {
+ function twentyseventeen_edit_link( $post_id = 0 ) {
edit_post_link(
sprintf(
/* translators: %s: Post title. Only visible to screen readers. */
__( 'Edit "%s"', 'twentyseventeen' ),
- get_the_title()
+ get_the_title( $post_id )
),
'',
- ''
+ '',
+ $post_id
);
}
endif;