Edit post
- post-meta.php: ajout de la condition if (current_user_can( 'edit_post' ))
This commit is contained in:
@@ -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 -->
|
||||||
Reference in New Issue
Block a user