diff --git a/CHANGELOG.md b/CHANGELOG.md index b5b1c4d..7f52a09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,14 @@ All notable changes to the Nynaeve theme will be documented in this file. For project-wide changes (infrastructure, tooling, cross-cutting concerns), see the [project root CHANGELOG.md](../../../../../CHANGELOG.md). +## [2.0.13] - 2025-11-24 + +### Removed +- **WooCommerce Query Filter**: Removed the `query` filter entirely from `setup.php` + - Filter was added to suppress harmless "Duplicate key" warnings in debug.log + - Risk of bugs outweighs benefit of suppressing minor log noise + - WooCommerce handles duplicate key errors gracefully without intervention + ## [2.0.12] - 2025-11-24 ### Fixed diff --git a/app/setup.php b/app/setup.php index 7b20099..05f53e7 100644 --- a/app/setup.php +++ b/app/setup.php @@ -324,27 +324,6 @@ class="text-center w-full px-4 py-3 bg-indigo-600 flex items-center return $block_content; }, 10, 2); - /** - * Suppress WooCommerce duplicate key database errors - * These errors are harmless - they occur when WooCommerce tries to add indexes that already exist - * This prevents them from cluttering debug.log - * - * Note: We simply return empty string for these queries - WooCommerce handles - * duplicate key errors gracefully, so we don't need to execute them at all. - */ - add_filter('query', function ($query) { - // Suppress duplicate key errors for known WooCommerce indexes - if ( - strpos($query, 'ADD KEY `session_expiry`') !== false || - strpos($query, 'ADD INDEX woo_idx_comment_date_type') !== false - ) { - // Return empty to skip this query entirely - // WooCommerce handles missing indexes gracefully - return ''; - } - - return $query; - }, 1); } /** diff --git a/style.css b/style.css index 9ab6fdb..34551fe 100644 --- a/style.css +++ b/style.css @@ -2,7 +2,7 @@ Theme Name: Nynaeve Theme URI: https://imagewize.com Description: Modern WordPress theme built on Sage 11 with reusable custom blocks using WordPress native tools and the Roots.io stack. -Version: 2.0.12 +Version: 2.0.13 Author: Jasper Frumau Author URI: https://magewize.com Text Domain: nynaeve