forked from mirror/_s
Merge pull request #949 from phoenixenero/master
Only show page entry footer if edit link is available; props @phoenixenero
This commit is contained in:
commit
e1144edb00
|
@ -25,17 +25,19 @@
|
||||||
?>
|
?>
|
||||||
</div><!-- .entry-content -->
|
</div><!-- .entry-content -->
|
||||||
|
|
||||||
<footer class="entry-footer">
|
<?php if ( get_edit_post_link() ) : ?>
|
||||||
<?php
|
<footer class="entry-footer">
|
||||||
edit_post_link(
|
<?php
|
||||||
sprintf(
|
edit_post_link(
|
||||||
/* translators: %s: Name of current post */
|
sprintf(
|
||||||
esc_html__( 'Edit %s', '_s' ),
|
/* translators: %s: Name of current post */
|
||||||
the_title( '<span class="screen-reader-text">"', '"</span>', false )
|
esc_html__( 'Edit %s', '_s' ),
|
||||||
),
|
the_title( '<span class="screen-reader-text">"', '"</span>', false )
|
||||||
'<span class="edit-link">',
|
),
|
||||||
'</span>'
|
'<span class="edit-link">',
|
||||||
);
|
'</span>'
|
||||||
?>
|
);
|
||||||
</footer><!-- .entry-footer -->
|
?>
|
||||||
|
</footer><!-- .entry-footer -->
|
||||||
|
<?php endif; ?>
|
||||||
</article><!-- #post-## -->
|
</article><!-- #post-## -->
|
||||||
|
|
Reference in New Issue