Releases: Jehu/mwe-etchwp-enhancements
Release list
v1.2.12 - Scoped auto-sizes opt-out
Changed
- WordPress core
sizes="auto, …"is no longer disabled site-wide: layout-aware image sizing stays enabled and a per-image guard stripsautoonly from small attribute-sized images (#8) - Attribute-sized images (width below the
mwe_etchwp_auto_sizes_min_widththreshold, default 150) no longer receivesrcset/sizesfrom the plugin; the browser sizes them from their width attribute (#10, #9)
Added
mwe_etchwp_disable_auto_sizesfilter to restore the previous global disable (#8)mwe_etchwp_auto_sizes_min_widthfilter controlling the attribute-sized threshold; invalid values are clamped to at least 1 (#8)
Fixed
- Over-fetching on lazy-loaded content images (e.g. a lazy header logo fetched 2048w instead of 768w on large viewports) (#8)
Upgrade Notice
Image loading improves: WordPress core sizes="auto" is enabled again, so browsers pick better-fitting files for lazy-loaded images. Small icons keep their fixed sizing. If you need the old global disable, see the README's mwe_etchwp_disable_auto_sizes filter.
v1.2.11 - AJAX Deduplication & Etch 1.6.x Compatibility
Changes
- Fixed: AJAX request deduplication in focus point editor - concurrent requests for the same image now share a single request instead of firing duplicates
- Fixed: Combobox selector compatibility with Etch 1.6.x (updated from to )
- Improved: Code style in promise caching functions
Test Results
Before fix: 71 requests / 45 duplicates in a single builder session
After fix: 26 requests / 0 duplicates (measured on staging with Etch 1.6.4)
v1.2.10 - Dynamic Image focus point support
Focus point editor support for Etch Dynamic Image elements
The focus point editor now handles the Etch Dynamic Image element (etch/dynamic-image) in the builder.
Added
- Focus point detection for the Dynamic Image element, identified via its unique
src (Static URL - Optional/Fallback)field - Picker is shown when a Dynamic Image has a fixed WP Media ID, reusing the existing etch:img focus point flow
- Explanatory notice for Dynamic Images with a dynamic source (e.g. loop expressions like
{item.attachment_id}), directing users to set focus points per image in the Media Library
Verified
- Regular image and etch:img pickers remain unaffected
- No false detection of dynamic image panels
- Notice renders without triggering a mutation-observer feedback loop
Note: Front-end rendering and the canvas preview already applied focus positions to dynamic images; this release adds the missing builder-side editor UI.
v1.2.9 - Etch 1.4.x Compatibility
Compatibility Update for Etch 1.4.x
- Fixed: Focus point editor tag detection in Etch 1.4.x (the
.etch-combobox__inputclass was renamed to.etch-combobox__input-wrapper) - Added: Support for the new Etch 1.4.x combobox markup while remaining backward compatible with Etch 1.3.x and earlier
- Verified: Compatibility with Etch 1.4.19 (block names, etch:img rendering, sidebar/properties selectors, iframe title, plugin detection)
Recommended if you use Etch 1.4 or later.
v1.2.8 - Fix ACSS styles in Etch builder
Fix: AutomaticCSS styles not rendering in Etch builder
This release fixes a compatibility issue where AutomaticCSS (ACSS) styles were not applied inside the Etch page builder's canvas iframe when MWE EtchWP Enhancements was active.
Changes
- Fixed: ACSS styles not rendering in Etch builder canvas when plugin was active
- Fixed: Focus point editor assets no longer injected into Etch canvas iframe (only loads on outer builder page where they belong)
- Improved: Focus point editor JS now exits early if running inside an iframe (defense-in-depth)
- Improved: Config polling now times out after 10 seconds instead of polling indefinitely
Root Cause
The Focus Editor UI was hooking into etch/canvas/enqueue_assets to enqueue its JS/CSS into the canvas iframe. This was unnecessary (the UI only runs on the outer builder page) and interfered with Etch's asset collection mechanism for third-party stylesheets like ACSS.
Upgrade
Update recommended for all users running ACSS (or other third-party CSS frameworks) with Etch.
v1.2.7 - External URL Focus Point Support
What's New
Fixed
- External URL Support: Focus points now work for external image URLs (CDN, external hosts). Previously only
wp-content/uploadsimages were supported. - PHP 8.5 Compatibility: Removed deprecated
setAccessible()calls in test suite
Added
- Tests for external URL focus point handling
Upgrade
This is a recommended update if you use focus points with images hosted externally (e.g., on a CDN).
v1.2.6 - Code Quality Improvements
What's Changed
Improvements
- Consolidated attachment ID lookups into central
Helper::get_attachment_id_from_url()method with caching - Consolidated duplicate
get_current_post_id()methods intoHelperclass - Added type declarations for
get_instance()methods (PHP 8.1+)
Added
- Comprehensive test coverage for
HelperandImage_Enhancementclasses (52 tests total)
Code Quality
- Reduced ~50 lines of duplicate code
- Better maintainability through centralized utility methods
Full Changelog: v1.2.5...v1.2.6
v1.2.5 - GitHub Token Support
What's New
Added
- Support for GitHub Personal Access Token (
MWE_ETCHWP_GITHUB_TOKENconstant) to avoid API rate limits
Fixed
- "Could not determine if updates are available" error caused by GitHub API rate limiting (403 errors)
Usage
To avoid GitHub API rate limits, add to your wp-config.php:
define( 'MWE_ETCHWP_GITHUB_TOKEN', 'ghp_your_token_here' );Create a token at: GitHub → Settings → Developer settings → Personal access tokens
v1.2.4 - etch:img Support & Performance
What's New
Added
- Focus Point Editor now supports
etch:imgelements (Etch's native Image element) - New AJAX endpoint for fetching attachment data by ID
Improved
- Significantly faster panel switching when selecting different images (debounced DOM observers)
Fixed
- Theme filters for disabling features now work correctly when added in
functions.php
Changed
- Plugin initialization moved to
after_setup_themehook for better filter compatibility - Regex updated to process both
<img>and<etch:img>tags
v1.2.3 - Etch 1.0.0-rc-7 Compatibility
Changelog
- Tested: Full compatibility with Etch 1.0.0-rc-7
- Confirmed: All expected blocks (element, dynamic-element, raw-html, component, dynamic-image) are still registered
- Verified: HTML output format unchanged (standard img tags, no wrapper elements)
- Note: No code changes required - plugin works with both beta-15 and rc-7