Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function widget( $args, $instance ) {
<?php echo Template::encode( $committer->display_name ); ?>
</a><br>

<?php if ( current_user_can( 'plugin_remove_committer', $post ) ) : ?>
<?php if ( $committer->user_login !== wp_get_current_user()->user_login && current_user_can( 'plugin_remove_committer', $post ) ) : ?>
<small>
<?php echo current_user_can( 'plugin_review' ) ? esc_html( $committer->user_email ) . ' ' : ''; ?>
<button class="button-link remove"><?php _e( 'Remove', 'wporg-plugins' ); ?></button>
Expand All @@ -68,7 +68,8 @@ public function widget( $args, $instance ) {
</li>
<?php endforeach; ?>

<?php if ( current_user_can( 'plugin_add_committer', $post ) ) : ?>
<?php
if ( current_user_can( 'plugin_add_committer', $post ) ) : ?>
<li class="new">
<form id="add-committer" action="POST">
<input type="text" name="committer" placeholder="<?php esc_attr_e( 'Login, Slug, or Email.', 'wporg-plugins' ); ?>">
Expand Down