prefix . 'adfoin_integration'; $result = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM {$table} WHERE id = %d", $id ), ARRAY_A ); // Guard against a stale/deleted id (e.g. ?action=edit&id=999999). Without // this, every $result[...] access below emits a PHP warning and fatals // under strict types. Render an actionable notice and bail instead. if ( ! $result ) { ?>

0 ) { if ( ! $stats['last_run_ok'] ) { $strip_state = 'error'; } elseif ( null !== $stats['success_rate'] && $stats['success_rate'] < 100 ) { $strip_state = 'warning'; } else { $strip_state = 'success'; } } // Success-rate emphasis class. $rate_class = 'is-success'; if ( null !== $stats['success_rate'] ) { if ( $stats['success_rate'] < 80 ) { $rate_class = 'is-error'; } elseif ( $stats['success_rate'] < 100 ) { $rate_class = 'is-warning'; } } $last_run_label = $stats['last_run_time'] ? sprintf( /* translators: %s: human-readable time difference */ __( '%s ago', 'advanced-form-integration' ), human_time_diff( strtotime( $stats['last_run_time'] ), current_time( 'timestamp' ) ) ) : __( 'Never', 'advanced-form-integration' ); $last_run_iso = $stats['last_run_time'] ? mysql2date( 'c', $stats['last_run_time'] ) : ''; $last_run_full = $stats['last_run_time'] ? mysql2date( get_option( 'date_format' ) . ' ' . get_option( 'time_format' ), $stats['last_run_time'] ) : ''; ?>

% 0 ) : ?>
{{ t.message }}