Releases: BeAPI/acf-options-for-polylang
Releases · BeAPI/acf-options-for-polylang
2.0.0
🚨 Breaking Changes
- BREAKING: Minimum PHP version raised from 5.6 to 7.4
- BREAKING: Minimum WordPress version raised from 4.7 to 6.0
- BREAKING: Updated plugin header with modern WordPress standards
✨ New Features
- Added configurable Polylang language attribute for option key suffix: constant
BEA_ACF_OPTIONS_FOR_POLYLANG_LANG_ATTRIBUTE, helperHelpers::get_lang_attribute(), and filterbea.aofp.lang_attributeallow usingslug(or other Polylang fields) instead of defaultlocale - Added comprehensive unit testing suite with PHPUnit
- Added wp-env configuration for Docker-based testing environment
- Added GitHub Actions workflow for automated testing (66 PHP/WP combinations)
- Added GitHub Actions workflow for code quality checks across all PHP versions
- Added TESTING.md documentation for running and writing tests
🔧 Improvements
- Updated all require-dev dependencies to latest versions:
- PHPUnit: ^9.6 || ^10.0 || ^11.0 (multi-version support)
- WordPress Coding Standards: ^3.1 (with WP 6.0+ support)
- PHP_CodeSniffer: ^3.10
- PHPUnit Polyfills: ^2.0 || ^3.0
- GrumPHP: ^2.7
- PHPLint: ^9.0
- Mockery: ^1.6
- Enforced short array syntax [] in phpcs.xml configuration
- Fixed phpcs.xml text_domain property deprecation warning
- Updated .gitignore with all test-related files and artifacts
- Updated .distignore to exclude all development files from production zip
- Updated plugin header with all standard WordPress fields:
- Requires at least, Requires PHP, Tested up to
- License, License URI, Text Domain, Domain Path, Network
- Updated copyright year to 2025
- Removed custom PHP version check and compat.php; PHP requirement is now enforced by WordPress Requires PHP header (WP 5.2+)
📊 Testing & Quality
- 61 unit tests, 92 assertions, 0 skips covering all main classes:
- 25 tests for Main class (filters, language switching, default values, untranslated context, switch/restore)
- 19 tests for Helpers class (option IDs, localization detection, lang attribute, regex fragment)
- 8 tests for Admin class (submitbox output, hooks, language display)
- 6 tests for Requirements class (dependency checks, error display)
- 3 tests for public API functions (switch/restore integration)
- Fixed Polylang initialization in test environment by defining
PLL_ADMINin bootstrap, ensuring all Polylang API functions are available - Added
set_polylang_language()test helper for proper runtime language switching viaPLL()->curlangandswitch_to_locale() - Test coverage across PHP 7.4, 8.0, 8.1, 8.2, 8.3, 8.4
- Test coverage across WordPress 6.0, 6.1, 6.2, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 6.9, latest
- Automated code quality checks on all PHP versions
- Code coverage reporting with Codecov integration
- All code complies with WordPress Coding Standards
🐛 Bug Fixes
- Fixed coding standards violations (use DIR instead of dirname(FILE))
- Converted array() syntax to short [] syntax throughout codebase
📚 Documentation
- Documented language attribute override (constant and filter) in README.md
- Added comprehensive TESTING.md with setup and usage instructions
- Added test coverage documentation
- Added contribution guidelines for tests
- Updated README.md with testing quick start section
1.1.12
What's Changed
- fix random plugin deactivate by @lphoumpakka in #93
- add new version 1.1.12 by @lphoumpakka in #94
New Contributors
- @lphoumpakka made their first contribution in #93
Full Changelog: 1.1.11...1.1.12
1.1.11
1.1.6
1.1.4
Requirement to php5.6 whereas namespace are 5.3
Default value for repetears
#22 : Fix error with repeater fields default values
1.1.1
1.1.0
- True (complet) plugin.
- Add check for ACF 5.6+ as requirement.
1.0.2
- Refactor and reformat.
- Handle all options page and custom post_id.
- Now load only if ACF & Polylang are activated.
- Load later at plugins loaded.