File tree Expand file tree Collapse file tree
src/wp-content/themes/twentyseventeen Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -110,12 +110,7 @@ function twentyseventeen_entry_footer() {
110110
111111if ( ! function_exists ( 'twentyseventeen_edit_link ' ) ) :
112112 /**
113- * Returns an accessibility-friendly link to edit a post or page.
114- *
115- * This also gives a little context about what exactly we're editing
116- * (post or page?) so that users understand a bit more where they are in terms
117- * of the template hierarchy and their content. Helpful when/if the single-page
118- * layout with multiple posts/pages shown gets confusing.
113+ * Displays an accessibility-friendly edit link for the current post in the loop.
119114 */
120115 function twentyseventeen_edit_link () {
121116 edit_post_link (
Original file line number Diff line number Diff line change 3333 <header class="entry-header">
3434 <?php the_title ( '<h2 class="entry-title"> ' , '</h2> ' ); ?>
3535
36- <?php twentyseventeen_edit_link ( get_the_ID () ); ?>
36+ <?php twentyseventeen_edit_link (); ?>
3737
3838 </header><!-- .entry-header -->
3939
Original file line number Diff line number Diff line change 3030 <header class="entry-header">
3131 <?php the_title ( '<h2 class="entry-title"> ' , '</h2> ' ); ?>
3232
33- <?php twentyseventeen_edit_link ( get_the_ID () ); ?>
33+ <?php twentyseventeen_edit_link (); ?>
3434
3535 </header><!-- .entry-header -->
3636
Original file line number Diff line number Diff line change 1515<article id="post-<?php the_ID (); ?> " <?php post_class (); ?> >
1616 <header class="entry-header">
1717 <?php the_title ( '<h1 class="entry-title"> ' , '</h1> ' ); ?>
18- <?php twentyseventeen_edit_link ( get_the_ID () ); ?>
18+ <?php twentyseventeen_edit_link (); ?>
1919 </header><!-- .entry-header -->
2020 <div class="entry-content">
2121 <?php
You can’t perform that action at this time.
0 commit comments