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:
Phoenix C. Enero 2016-04-28 15:35:52 +08:00
parent fbd667fd6b
commit 9d4675c7d6
1 changed files with 2 additions and 0 deletions

View File

@ -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-## -->