queue = $queue; } /** * Render the page. * * @return void */ public function render(): void { // phpcs:ignore WordPress.Security.NonceVerification.Recommended -- Read-only filter. $level = isset( $_GET['level'] ) ? sanitize_key( wp_unslash( (string) $_GET['level'] ) ) : ''; $level = in_array( $level, array( 'info', 'warning', 'error', 'debug' ), true ) ? $level : ''; $counts = $this->queue->counts(); $jobs = $this->queue->recent( 50 ); $logs = Logger::recent( 200, $level ); Notices::render(); ?>

$total ) : ?>
0 ) : ?>

— —' : esc_html( (string) $job['last_error'] ); ?> formatDate( isset( $job['updated_at'] ) ? (string) $job['updated_at'] : '' ) ); ?>

formatDate( isset( $log['created_at'] ) ? (string) $log['created_at'] : '' ) ); ?> prettyContext( $context ) ); ?> —