Enforcer::META_EXEMPT, // phpcs:ignore WordPress.DB.SlowDBQuery.slow_db_query_meta_key -- small, admin-only list. 'search' => '' !== $search ? '*' . $search . '*' : '', 'number' => self::PER_PAGE, 'paged' => $paged, 'orderby' => 'display_name', ] ); $rows = $whitelist->get_results(); $total = $whitelist->get_total(); } else { list( $rows, $total ) = FlagRepository::paginate( $status, self::PER_PAGE, $paged, $search ); } $counts = FlagRepository::counts(); $notes = NoteRepository::summary_for_users( 'whitelisted' === $status ? wp_list_pluck( $rows, 'ID' ) : wp_list_pluck( $rows, 'user_id' ) ); $base = admin_url( 'admin.php?page=ndsg-flags' ); $tabs = [ 'open' => [ __( 'All open', 'netdesign-session-guard' ), FlagRepository::count_open() ] ]; foreach ( $statuses as $key => $label ) { $tabs[ $key ] = [ $label, $counts[ $key ] ?? 0 ]; } $tabs['whitelisted'] = [ __( 'Excluded users', 'netdesign-session-guard' ), self::count_whitelisted() ]; ?>
|
display_name ); ?> user_email ); ?> |
note, 16 ) ) : '—'; ?> | |
|
level ); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- escaped in Risk::badge(). ?>
prior ) : ?>
prior, 'netdesign-session-guard' ), (int) $f->prior ) ); ?> |
display_name ); ?> user_email ); ?> ID user_id; ?> ✎ note, 12 ) ); ?> |
|
created_at ) ) ); ?> |
status ) || 'blocked' === $f->status ) : ?> | |