Skip to content

Conversation

@jasperf
Copy link
Contributor

@jasperf jasperf commented Nov 24, 2025

This PR removes the WooCommerce harmless warnings suppression filter that was previously implemented in the theme's setup.php file. The filter was originally added to suppress non-critical PHP warnings generated by WooCommerce, but maintaining such workarounds adds technical debt and can mask legitimate issues as WooCommerce evolves. By removing this suppression mechanism, the theme now allows WooCommerce's native error handling to function without interference, providing clearer debugging output and better alignment with WordPress development best practices.

WooCommerce Integration Cleanup:

  • Removed the custom error suppression filter from app/setup.php that was intercepting and hiding WooCommerce-generated PHP warnings
  • Eliminates approximately 22 lines of workaround code, reducing theme complexity and maintenance burden
  • Allows developers to see actual WooCommerce warnings during development, improving debugging capabilities

Documentation and Versioning:

  • Updated CHANGELOG.md to document the removal of the WooCommerce warnings suppression filter
  • Updated style.css theme metadata to reflect the current version with this change

Files Changed:

@jasperf jasperf merged commit 746ca7e into main Nov 24, 2025
2 checks passed
@jasperf jasperf deleted the woo-error-suppression-removal branch November 24, 2025 02:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants