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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
21 changes: 0 additions & 21 deletions app/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down