diff --git a/CHANGELOG.md b/CHANGELOG.md index 69c9de0..38789ed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,22 @@ All notable changes to the Peptide Starter Theme are documented in this file. +## [1.7.0] - 2026-04-24 — Remove WooCommerce integration + +WooCommerce is not used on peptiderepo.com. Removing dead code reduces the asset +dequeue surface and eliminates the function_exists() guard introduced in the 2026-04-23 +hotfix. + +### Removed +- WooCommerce asset dequeue block from `inc/perf-asset-policy.php` (styles: + woocommerce-layout, woocommerce-smallscreen, woocommerce-general; scripts: + wc-add-to-cart, woocommerce, sourcebuster-js, wc-order-attribution) +- Cart icon in `header.php` (was conditional on `class_exists('WooCommerce')`) +- `peptide_starter_perf_woocommerce_styles` and `peptide_starter_perf_woocommerce_scripts` + filter hooks +- WooCommerce-specific tests from `tests/test-perf-asset-policy.php` +- WooCommerce section from README.md and CONVENTIONS.md + ## [1.6.0] - 2026-04-23 — Mobile Performance Phase 1 Mobile-perf optimization targeting LCP reduction through conditional asset diff --git a/CONVENTIONS.md b/CONVENTIONS.md index 54919af..fe87483 100644 --- a/CONVENTIONS.md +++ b/CONVENTIONS.md @@ -460,11 +460,6 @@ if ( is_active_sidebar( 'footer-1' ) ) { ### Class Existence Check -**For WooCommerce:** -```php -if ( class_exists( 'WooCommerce' ) ) { - // Render cart icon -} ``` **For post types:** diff --git a/header.php b/header.php index f234a65..50ac12f 100644 --- a/header.php +++ b/header.php @@ -115,15 +115,6 @@ - - - - -