=== WP Hunter – Polylang Customizer ===
Contributors: wp-hunter
Tags: polylang, customizer, multilingual, theme-mods
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 2.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds language-specific Customizer settings for Polylang while keeping the default-language WordPress settings intact.

== Description ==

Modernized version of a legacy Polylang/Customizer integration for WordPress 7.1 and Polylang 3.8.9.

Features:
* Separate theme_mod values for each non-default language.
* Language selector inside the classic WordPress Customizer.
* Keeps the active language in Customizer links from the admin bar and Appearance menu.
* Backward-compatible with the legacy option storage format.
* Preserves legacy registration for options_footer_columns and options_footer_logos strings.
* Does not modify Polylang URL settings or browser-language settings.
* Uses public Polylang APIs instead of internal transients.

Note: This plugin targets the classic WordPress Customizer. Full block themes primarily use the Site Editor, where Customizer controls may not be available.

== Installation ==

1. Upload the wp-hunter-polylang-customizer folder to /wp-content/plugins/ or install the ZIP.
2. Activate Polylang 3.8.9 or newer.
3. Activate WP Hunter – Polylang Customizer.
4. Open Appearance > Customize and switch the language using the selector at the top of the controls panel.

== Changelog ==

= 2.0.0 =
* Updated for WordPress 7.1 and Polylang 3.8.9.
* Moved initialization to a Polylang-safe lifecycle.
* Removed direct changes to Polylang's force_lang option.
* Removed pll_preferred_language override.
* Replaced Polylang transient access with public API calls.
* Fixed global instance typo from the legacy code.
* Fixed the Appearance > Customize submenu URL handling.
* Replaced random script cache-busting with the plugin version.
* Added child-theme-aware storage with legacy fallback.
* Restricted secondary-language writes to Customizer requests.
* Added capability and data validation.
