Skip to content

Commit

Permalink
Linting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
luismulinari committed Aug 9, 2023
1 parent 006ac0e commit 5fadcf7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions security/user-last-seen.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
const LAST_SEEN_UPDATE_USER_META_CACHE_KEY_PREFIX = 'vip_last_seen_update_user_meta_cache_key';

add_action( 'set_current_user', 'update_user_last_seen', 10, 0 );
add_filter ('manage_users_columns', 'users_columns' ) ;
add_filter ('manage_users_custom_column', 'users_custom_column', 10, 3 ) ;
add_filter('manage_users_columns', 'users_columns' ) ;
add_filter('manage_users_custom_column', 'users_custom_column', 10, 3 ) ;

function update_user_last_seen() {
global $current_user;
Expand All @@ -28,12 +28,12 @@ function update_user_last_seen() {
}
}

function users_columns ($cols) {
function users_columns($cols) {
$cols['last_seen'] = __( 'Last seen' ) ;
return $cols;
}

function users_custom_column ( $default, $column_name, $user_id ) {
function users_custom_column( $default, $column_name, $user_id ) {
if ( 'last_seen' == $column_name ) {
$last_seen_timestamp = get_user_meta( $user_id, 'vip_last_seen', true );

Expand Down

0 comments on commit 5fadcf7

Please sign in to comment.