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
This commit is contained in:
2026-04-24 08:28:14 +01:00
committed by GitHub
parent 34b0b6f0d6
commit 5a80351d1f
+7 -4
View File
@@ -53,10 +53,12 @@ CHANGELOG.md # Changelog (keep in sync with READM
Version appears in **four places** — all must be updated together: 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) 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. `includes/Plugin.php` — no direct version constant; version passed via constructor 2. `readme.txt``Stable tag:` and changelog section
3. `readme.txt``Stable tag:` and changelog section 3. `CHANGELOG.md` — top entry
4. `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`. `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). 1. Update version in `wp-fix-plugin-does-not-exist-notices.php` (both header and constructor call).
2. Update `Stable tag:` in `readme.txt`. 2. Update `Stable tag:` in `readme.txt`.
3. Add changelog entry to `readme.txt`, `CHANGELOG.md`, and `README.md`. 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 ### Add or fix update source logic