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 -->
|
</div><!-- .entry-content -->
|
||||||
|
|
||||||
|
<?php if ( get_edit_post_link() ) : ?>
|
||||||
<footer class="entry-footer">
|
<footer class="entry-footer">
|
||||||
<?php
|
<?php
|
||||||
edit_post_link(
|
edit_post_link(
|
||||||
|
@ -38,4 +39,5 @@
|
||||||
);
|
);
|
||||||
?>
|
?>
|
||||||
</footer><!-- .entry-footer -->
|
</footer><!-- .entry-footer -->
|
||||||
|
<?php endif; ?>
|
||||||
</article><!-- #post-## -->
|
</article><!-- #post-## -->
|
||||||
|
|
Reference in New Issue