mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-07 19:25:44 +03:00
Pledge Log: Log user of CLI actions.
This commit is contained in:
parent
c524d1b21b
commit
18228d367c
2 changed files with 11 additions and 3 deletions
|
@ -36,9 +36,14 @@ namespace WordPressDotOrg\FiveForTheFuture\View;
|
|||
<td>
|
||||
<?php
|
||||
$user = get_user_by( 'id', $entry['user_id'] );
|
||||
if ( $user ) : ?>
|
||||
<?php echo sanitize_user( $user->user_login ); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
if ( $user ) {
|
||||
echo sanitize_user( $user->user_login );
|
||||
} elseif ( ! empty( $entry['user_id'] ) ) {
|
||||
echo esc_html( $entry['user_id'] );
|
||||
}
|
||||
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue