/**
 * Plugin Name: MainWP Google Search Console Extension
 * Plugin URI: https://mainwp.com
 * Description: Monitor search performance, indexing status, and search queries for all your WordPress sites from Google Search Console within your central MainWP Dashboard.
 * Version: 6.3
 * Author: MainWP
 * Author URI: https://mainwp.com
 * Documentation URI: https://docs.mainwp.com/add-ons/analytics/google-search-console-extension
 * Requires at least: 6.2
 * Requires PHP: 8.1
 * Text Domain: mainwp-google-search-console-extension
 * Domain Path: /languages/
 */

== Changelog ==

= 6.3 - 9-23-2026 =

* Fixed: Scheduled refreshes to prevent overlapping runs and report refresh outcomes accurately.
* Fixed: Site selection and dashboard data views to respect each user's permitted site access.
* Added: MainWP AI Assistant actions to view Google Search Console connections and properties, manage site mappings and refresh settings, and request refreshes.
* Updated: Google Search Console account and property management so site assignments stay in sync when connections are refreshed.

= 6.2 - 8-19-2026 =

* Added: Automatic token refresh with retry scheduling and safeguards against simultaneous refresh attempts.
* Added: Configuration checks and administrator notices when the required encryption setup cannot be completed.
* Updated: Improved Google Search Console token exchange requests by explicitly identifying the connection type.
* Updated: Separated scheduled data refresh and authentication token refresh processes for more reliable background processing.
* Updated: Improved handling of expired, invalid, or permanently rejected credentials to reduce unnecessary re-authentication prompts.
* Updated: Enhanced token and API response processing so authentication status and stored token data remain synchronized more reliably.
* Updated: Prevented authentication data from being saved when encryption fails, avoiding storage of unprotected credentials.
* Updated: Improved Pro Reports date-range handling to consistently use the requested reporting period and fall back to cached metrics when data for the requested range is unavailable.
* Updated: Refactor activation logic to improve file handling and remove transient retries

= 6.1 - 7-17-2026 =

* Security: Enhanced authentication message validation for safer popup communication.
* Fixed: Client report rendering so "hide" and "hide if empty" settings behave correctly and consistently per site.
* Fixed: Ensured tokens and report sections reliably fall back to defaults when data is missing, reducing blank or incorrect output.
* Added: Support for the database schema validation.
* Updated: Generated chart links and merged token data so report content is more complete and accurate.

= 6.0.5 - 6-12-2026 =

* Fixed: Property refresh logic to reliably update account property mappings.
* Added: WordPress REST API availability check along with a warning message to inform users if not available.
* Updated: Enhanced GSC account management by adding status handling and syncing properties for entries and clients.

= 6.0.4 - 5-29-2026 =

* Fixed: Support for the Pro Reports with configurable sections, titles, tokens, and generated charts/tables.
* Added: New REST authentication endpoint to support secure auth challenge retrieval.
* Updated: Improved debug logging for authentication flows and non-200/empty responses.

= 6.0.3 - 5-19-2026 =

* Fixed: Handling and debug logging for failed authentication and missing/invalid authentication payloads.
* Added: Site secret reset flow to help recover missing or corrupted authentication data.
* Updated: Cron scheduling is now managed through a dedicated scheduler class with clearer job registration and reporting.

= 6.0.2 - 4-23-2026 =

* Updated: Strengthened permission checks for property assignment management to improve access control.

= 6.0.1 - 3-25-2026 =

* Fixed: Resolved a PHP syntax error by improving input validation to prevent invalid data types from causing downstream processing errors.
* Updated: Refined the property selection option on the "Site Edit" page for better visual consistency with the interface.

= 6.0 - 2-24-2026 =

* Official release

= 6.0-er.1 - 12-30-2025 =
* First early release version
