Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,24 @@

All notable changes to Warder Cookie Consent are documented here.

## [2.0.0] - 2026-05-28

### Changed
- Split plugin logic out of the monolithic `warder-cookie-consent.php` into five focused files under `inc/`:
- `inc/defaults.php` — `warder_get_default_options()`, `warder_get_merged_options()`
- `inc/settings.php` — `warder_register_settings()`, `warder_validate_options()`, `warder_update_options_timestamp()`, `warder_plugin_activate()`
- `inc/ajax.php` — `warder_ajax_save_settings()`, `warder_handle_admin_actions()`
- `inc/admin.php` — `warder_add_options_page()`, `warder_enqueue_admin_scripts()`, `warder_render_options_page()`, `warder_admin_notices()`, `warder_render_category_title_field()`
- `inc/frontend.php` — `warder_enqueue_scripts()`, `warder_get_preferences_toggle_css()`, `warder_add_preferences_button()`
- Main plugin file is now 26 lines: plugin header, `WARDER_VERSION`, `WARDER_PLUGIN_FILE`, and five `require_once` calls
- Added `WARDER_PLUGIN_FILE` constant (`__FILE__` captured at plugin root) so `plugin_dir_url()`, `get_plugin_data()`, and `register_activation_hook()` resolve correctly from within `inc/` files

No behaviour changes; all existing settings, hooks, and nonces are unaffected.

### Fixed
- Admin page title changed from "Cookie Consent Settings" to "Warder Cookie Consent"
- Settings sidebar label changed from "Cookie Consent" to "Warder Consent" to avoid ambiguity when other consent plugins are active

## [1.5.2] - 2026-05-28

### Added
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ composer require imagewize/warder-cookie-consent

## Usage

After activation, the cookie consent banner will automatically appear on your website. Configure the settings from the WordPress admin panel at Settings > Cookie Consent.
After activation, the cookie consent banner will automatically appear on your website. Configure the settings from the WordPress admin panel at Settings > Warder Consent.

## Configuration

You can customize the plugin through the admin interface:

1. Navigate to Settings > Cookie Consent in your WordPress dashboard
1. Navigate to Settings > Warder Consent in your WordPress dashboard
2. Configure the following settings:
- Language and general behavior
- Banner title and description
Expand Down Expand Up @@ -125,7 +125,7 @@ The plugin automatically handles third-party cookies by:
1. Preventing scripts from loading until consent is given
2. Clearing cookies if consent is withdrawn

For detailed implementation guides, see the `dev.md` documentation file.
For detailed implementation guides, see [`docs/dev.md`](docs/dev.md).

## Dependencies

Expand Down
307 changes: 0 additions & 307 deletions dev.md

This file was deleted.

Loading
Loading