From 5a80351d1f3fe4d8cc9c1b618b7f63dbe28ed6bd Mon Sep 17 00:00:00 2001 From: Marcus Quinn <6428977+marcusquinn@users.noreply.github.com> Date: Fri, 24 Apr 2026 08:28:14 +0100 Subject: [PATCH] fix: correct class name and version locations in AGENTS.md Resolves #24 - Use fully qualified class name WPALLSTARS\FixPluginDoesNotExistNotices\Plugin in version management snippet - Replace misleading includes/Plugin.php entry (no version constant) with AGENTS.md as the fourth version location - Add note clarifying Plugin.php passes version via constructor - Add step 4 to bump-version checklist to update AGENTS.md version string --- AGENTS.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 2c1e7ee..2964648 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -53,10 +53,12 @@ CHANGELOG.md # Changelog (keep in sync with READM Version appears in **four places** — all must be updated together: -1. `wp-fix-plugin-does-not-exist-notices.php` — `Version:` header and `new Plugin(__FILE__, '2.4.0')` (replace `2.4.0` with the new version) -2. `includes/Plugin.php` — no direct version constant; version passed via constructor -3. `readme.txt` — `Stable tag:` and changelog section -4. `CHANGELOG.md` — top entry +1. `wp-fix-plugin-does-not-exist-notices.php` — `Version:` header and `new WPALLSTARS\FixPluginDoesNotExistNotices\Plugin(__FILE__, '2.4.0')` (replace `2.4.0` with the new version) +2. `readme.txt` — `Stable tag:` and changelog section +3. `CHANGELOG.md` — top entry +4. `AGENTS.md` — this file, item 1 above (replace the hardcoded version string) + +Note: `includes/Plugin.php` has no direct version constant; the version is passed in via the constructor call in the entry point file. `README.md` changelog section must also stay in sync with `CHANGELOG.md`. @@ -77,6 +79,7 @@ JS: `admin/js/admin-scripts.js` or `admin/js/update-source-selector.js`. 1. Update version in `wp-fix-plugin-does-not-exist-notices.php` (both header and constructor call). 2. Update `Stable tag:` in `readme.txt`. 3. Add changelog entry to `readme.txt`, `CHANGELOG.md`, and `README.md`. +4. Update the version string in `AGENTS.md` (item 1 of the Version Management list above). ### Add or fix update source logic