# Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Added
- `assets/screenshot-1..6.png` — WordPress.org screenshot set based on English admin UI.
- `readme.txt` — WordPress.org plugin directory metadata (description, FAQ, screenshots, changelog).

### Changed
- `README.md` / `README.ru.md` — removed embedded screenshots to keep GitHub README concise.
- Earlier: removed maintainer *Publishing* section; *Installation* points to ogCover downloads (no `package-plugin.sh` in README).
- `ogcover.php` plugin header now includes WP.org fields (`Requires at least`, `Requires PHP`, `Tested up to`, `License`, `Text Domain`).
- `package-plugin.sh` now includes `readme.txt` and `assets/` in release ZIP.
- `LICENSE` switched to GPL-2.0 text for WordPress.org compatibility.

## [1.0.2] - 2026-04-10

### Changed
- Bumped plugin version to `1.0.2` after WordPress.org readiness updates.
- Synchronized documentation version references (`README.md`, `README.ru.md`, `readme.txt`).
- Finalized clean packaging flow with `package-plugin-wporg.sh`.

## [1.0.1] - 2026-04-10

### Added
- `package-plugin-wporg.sh` for WordPress.org-safe ZIP packaging (`ogcover-generator` root folder, no `README.ru.md` in ZIP).
- Input sanitization callbacks for plugin settings.
- Localized and clearer message when generating a cover for unsaved auto-drafts.

### Changed
- `readme.txt` updated for WordPress.org submission requirements (installation flow, privacy section, tested-up-to 6.9).
- Plugin header metadata updated (`Version: 1.0.1`, `Tested up to: 6.9`, `Text Domain: ogcover-generator`).
- Removed custom plugin updater hooks to align with WordPress.org policy.
- Hardened output escaping and request sanitization in admin and AJAX handlers.

## [1.0.0] - 2026-04-09

### Added
- Initial public release of `ogCover Generator` WordPress plugin.
- Automatic OG image generation on save/publish for **blog posts** and **static pages** (`post` and `page`).
- **Page Template ID** (optional): separate template for static pages; if empty, pages use the same template as blog posts (**Template ID**).
- Meta box and manual “Update cover” regeneration in the editor for posts and pages.
- Bulk sync for all published **posts** and **pages**.
- Homepage / front cover via dedicated **Home Template ID**; `og:image` on the front page prefers that image, then falls back to the static front page’s generated cover if needed.
- `README.md` and `README.ru.md` with cross-links; release notes for quota watermark behaviour (optional in ogCover account settings).

### Changed
- Plugin implementation in `includes/class-ogcover-plugin.php`; packaging via `package-plugin.sh` (PHP, docs, and both READMEs in the zip).
- Manual regenerate AJAX uses `edit_post` for the target content.

### Security
- Nonces are required for AJAX actions.
- Capability checks on generation and sync endpoints.
