Edit post

- post-meta.php: ajout de la condition if (current_user_can( 'edit_post' ))
This commit is contained in:
2019-01-11 07:01:53 +01:00
parent 6662ab3a62
commit c1fb81ddaa
2 changed files with 4 additions and 2 deletions

View File

@@ -11,8 +11,10 @@
/ /
<span> <?php printLikes(get_the_ID()); ?> </span> <span> <?php printLikes(get_the_ID()); ?> </span>
<?php } ?> <?php } ?>
<?php if (current_user_can( 'edit_post' )) { ?>
/ /
<span> <?php edit_post_link(); ?> <span> <span> <?php edit_post_link(); ?> <span>
<?php } ?>
</div> </div>
<!--end meta --> <!--end meta -->