3.1 KiB
3.1 KiB
Changelog
All notable changes to Documentation Markdown are documented in this file.
For the WordPress.org–formatted changelog, see changelog.txt.
[1.1.1] — 2026-06-08
Security
- CommonMark: disabled raw HTML passthrough (
html_input: strip,allow_unsafe_links: false) — prevents stored XSS if an upstream repository is compromised - Plugin settings option now stored with
autoload = false— encrypted GitHub token no longer loaded on every WordPress request - Replaced
serialize()withwp_json_encode()in updater HMAC cache signature (eliminates object-injection risk surface) - Added strict base64 length validation in
robotstxt_docmd_decrypt_token()before IV extraction - Added
base64_decode()strict return-value check inrobotstxt_docmd_get_file_content()
Fixed
- Admin notices now display results for all operations (mapping created/updated/deleted, sync complete, error messages); previously only "Settings saved" appeared
wp_update_post()return value now checked during sync — silent failures previously reported as success- Wrong textdomain
'robotstxt-smtp'in updater class corrected to'robotstxt-documentation-markdown'
Changed
robotstxt-updater.phprenamed toclass-robotstxt-updater.php(WordPress file-naming convention)Requires PHPheader corrected to8.0(real minimum confirmed by PHPCompatibility scan — union types,str_starts_with(),str_contains(),mixedtype are the binding constraints; no 8.1/8.2-specific features used)
Developer / Infrastructure
- Added
composer.jsonwith fullrequire-devtooling (PHPCS, PHPStan 2.x, PHPUnit 9.6, PHPCompatibility 10.0.0-alpha2, wp-compat, yoast/phpunit-polyfills) - Added
phpstan.neon(level 9),.phpcs.xml(WordPress standards),bin/deploy.sh,phpunit.xml.dist - 17 PHPUnit plugin header tests added (
tests/PluginHeadersTest.php) - Added
docs/known-issues.mdanddocs/db-migrations.md class-robotstxt-updater.php: PHPCS 0 errors, PHPStan level 9 0 errors- PHPCompatibility updated to 10.0.0-alpha2 (PHP 8.x feature detection)
[1.1.0] — 2026-03-28
Security
- Patched CVE-2026-33347 and CVE-2026-30838 (league/commonmark updated to 2.8.2)
Changed
- Access level changed from
manage_options(administrator) toedit_pages(editor)
Fixed
- PHPStan level 9 compliance: zero errors across all plugin files
target_order(menu_order) field now saved and applied end-to-end- Type-safety improvements for all WordPress API returns
- Token decryption
falsereturn handled correctly - Uninstall data cleanup narrows mixed option return before array access
[1.0.0] — 2026-01-26
Added
- Initial release: GitHub → WordPress Markdown sync
- Encrypted GitHub token storage (AES-256-CBC)
- Custom Post Type
robotstxt_mapfor mapping management - Automatic cron sync (hourly, twice daily, daily)
- Manual on-demand sync via admin interface
- Markdown to HTML via CommonMark (league/commonmark)
- Multi-repository support
- Debug tools (visible when
WP_DEBUGenabled) - Full i18n support (es_ES bundled)