forked from mirror/_s
Only show page footer if there's an edit link.
Checks the output of `get_edit_post_link()` before displaying the entry footer.
This commit is contained in:
parent
fbd667fd6b
commit
9d4675c7d6
|
@ -25,6 +25,7 @@
|
|||
?>
|
||||
</div><!-- .entry-content -->
|
||||
|
||||
<?php if ( get_edit_post_link() ) : ?>
|
||||
<footer class="entry-footer">
|
||||
<?php
|
||||
edit_post_link(
|
||||
|
@ -38,4 +39,5 @@
|
|||
);
|
||||
?>
|
||||
</footer><!-- .entry-footer -->
|
||||
<?php endif; ?>
|
||||
</article><!-- #post-## -->
|
||||
|
|
Reference in New Issue