Skip to content

Commit a15eb6c

Browse files
authored
Merge pull request #49 from vizuh/agent/release-1.8.5-prep
release: v1.8.5 — WP 7.0 compat, dead-code cleanup, phpcompat CI
2 parents 92956af + 0c5c856 commit a15eb6c

16 files changed

Lines changed: 26 additions & 14 deletions

README.pt-BR.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# ClickTrail
22

3+
[![WordPress tested](https://img.shields.io/badge/WordPress-v7.0%20tested-3858e9.svg)](https://wordpress.org)
4+
35
ClickTrail e um plugin de atribuicao para WordPress feito para sites que precisam manter a origem real das conversoes ao longo da jornada completa, especialmente quando pedidos do WooCommerce ou formularios acontecem varias paginas depois da landing page.
46

57
Ele foi pensado para os problemas que normalmente quebram a atribuicao em producao:

changelog.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
========
33

4+
= 1.8.5 =
5+
* **WordPress 7.0 compatibility** (`readme.txt`, `README.en.md`, `README.pt-BR.md`): Tested up to WordPress 7.0 "Armstrong" (released 2026-05-20). Added `WC requires at least: 10.4.2` to the WP plugin header — WooCommerce 10.4.2+ is required for WP 7.0 compatibility. Static audit confirmed all 7 `register_rest_route()` calls in `includes/api/class-tracking-controller.php` already declare `permission_callback` (the headline WP 7.0 enforcement); PHP minimum 8.1 sits above WP 7.0's 7.4 floor; no usage of removed `html5` script theme support or other deprecated surfaces.
6+
* **Script enqueue refactor** (`clicutcl.php`): Removed dead pre-WP-6.3 fallback from `clicutcl_script_args()`. The function had returned a bare boolean for `$wp_version < 6.3` to match the legacy 5th-arg signature of `wp_register_script`, but the plugin has required WP 6.5+ since the 1.7 line, so the branch was unreachable. Function now always returns the WP 6.3+ array form including the optional `defer`/`async` strategy keys. All 8 call sites continue unchanged; one runtime `global $wp_version` lookup per enqueue eliminated.
7+
* **Deprecation scan in CI** (`.github/workflows/phpcompatibility.yml`, `composer.json`, `docs/guides/CODE-QUALITY.md`, `CONTRIBUTING.md`, `CONTRIBUTING.pt-BR.md`): Added `composer phpcompat` script invoking PHPCompatibilityWP with `testVersion 8.1-` and a sibling GitHub Actions workflow next to `php-lint.yml`. Pinned `phpcompatibility/phpcompatibility-wp` to `^2.1` (was `*`). Workflow runs on every push and PR against `main` and flags any PHP or WordPress deprecated/removed API usage in `clicutcl.php`, `uninstall.php`, and `includes/`.
8+
49
= 1.8.2 =
510
* **UI polish — icon and alignment fixes** (`assets/css/admin.css`, `assets/css/wizard.css`, `includes/admin/class-admin.php`): Resolved several visual inconsistencies across the plugin UI. Wizard step-navigation buttons (Next / Back): dashicon arrow was slightly lower than the button text due to the WordPress default button `line-height: 2.15` bleeding through — fixed with `line-height: 1` on `.clicutcl-wizard__btn .dashicons`. Settings page: form-table `th` and `td` cells now use `vertical-align: middle` so toggle switches and their labels sit centered in each row. Card header icon badge and section-header dashicons: added `line-height: 1` and `vertical-align: middle` to prevent glyph offset from dashicons' built-in `vertical-align: top`. Admin sidebar icon: replaced `dashicons-chart-area` with a custom monochrome SVG trail icon — four connected nodes on an upward curve — which renders correctly across all WordPress admin colour schemes via WP's `filter: brightness(0) invert(1)` mechanism.
611

clicutcl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Plugin Name: ClickTrail – UTM, Click ID & Ad Tracking (with Consent)
44
* Plugin URI: https://github.com/vizuh/click-trail-handler
55
* Description: Consent-aware marketing attribution for WordPress. Captures UTMs, click IDs, and referrers, enriches WooCommerce orders and forms, collects browser events, and supports optional server-side delivery.
6-
* Version: 1.8.2
6+
* Version: 1.8.5
77
* Author: Vizuh
88
* Author URI: https://vizuh.com
99
* License: GPL-2.0-or-later
@@ -20,7 +20,7 @@
2020
}
2121

2222
// Define Constants
23-
define( 'CLICUTCL_VERSION', '1.8.2' );
23+
define( 'CLICUTCL_VERSION', '1.8.5' );
2424
define( 'CLICUTCL_DIR', plugin_dir_path( __FILE__ ) );
2525
define( 'CLICUTCL_URL', plugin_dir_url( __FILE__ ) );
2626
define( 'CLICUTCL_BASENAME', plugin_basename( __FILE__ ) );

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- **Audience**: implementers, contributors, maintainers, support teams, reviewers, and AI agents
44
- **Canonical for**: engineering navigation, adoption guidance, and source-of-truth lookup
55
- **Update when**: docs move, ownership changes, or a new subsystem or rollout pattern needs a canonical reference
6-
- **Last verified against version**: `1.7.0`
6+
- **Last verified against version**: `1.8.5`
77

88
This is the docs home for GitHub readers. Use it to find the right document by role, task, or rollout goal. Canonical docs live under `docs/architecture`, `docs/guides`, and `docs/reference`.
99

docs/architecture/CODE-MAP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- **Audience**: contributors, maintainers, and AI agents
44
- **Canonical for**: active file layout and remaining compatibility surfaces in the repository
55
- **Update when**: files move, new subsystems are added, or active/legacy status changes
6-
- **Last verified against version**: `1.7.0`
6+
- **Last verified against version**: `1.8.5`
77

88
This map is organized around the active code paths first, then compatibility and maintenance notes.
99

docs/architecture/DATA-MODEL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- **Audience**: contributors, maintainers, and reviewers
44
- **Canonical for**: option keys, cookies, tables, transients, cron hooks, and persistence surfaces
55
- **Update when**: stored keys, retention behavior, queue schema, or cookie/storage usage changes
6-
- **Last verified against version**: `1.7.0`
6+
- **Last verified against version**: `1.8.5`
77

88
This document summarizes the active storage surfaces used by ClickTrail.
99

docs/architecture/EVENT-PIPELINE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- **Audience**: contributors, maintainers, and reviewers
44
- **Canonical for**: browser-to-REST intake, webhook intake, lifecycle ingestion, dedup, and delivery flow
55
- **Update when**: intake stages, canonical event flow, dedup behavior, or delivery stages change
6-
- **Last verified against version**: `1.7.0`
6+
- **Last verified against version**: `1.8.5`
77

88
ClickTrail uses one unified event pipeline behind the admin UI, even though the data can enter the system from different sources.
99

docs/architecture/PLUGIN-OVERVIEW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- **Audience**: contributors, maintainers, and reviewers
44
- **Canonical for**: runtime scope, bootstrap flow, subsystem ownership, and active vs compatibility paths
55
- **Update when**: boot flow, module boundaries, or major runtime responsibilities change
6-
- **Last verified against version**: `1.7.0`
6+
- **Last verified against version**: `1.8.5`
77

88
## Product Summary
99

docs/guides/CODE-QUALITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- **Audience**: maintainers, reviewers, and cleanup-focused contributors
44
- **Canonical for**: current maintenance posture, known dead paths, and cleanup hotspots
55
- **Update when**: legacy paths are removed, major cleanup lands, or quality risks materially change
6-
- **Last verified against version**: `1.7.0`
6+
- **Last verified against version**: `1.8.5`
77

88
This document summarizes the current quality posture of the repository and the main maintenance concerns worth watching.
99

docs/guides/FEATURE-TEST-MATRIX.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
- **Audience**: maintainers, reviewers, QA contributors, and release engineers
44
- **Canonical for**: ClickTrail smoke-test IDs, evidence-backed regression checks, and manual verification coverage
55
- **Update when**: registry smoke IDs change or a shipped capability needs new regression coverage
6-
- **Last verified against version**: `1.7.0`
6+
- **Last verified against version**: `1.8.5`
77

88
ClickTrail now keeps a small evidence-backed smoke matrix so capability breadth can grow without silent docs or QA drift.
99

0 commit comments

Comments
 (0)