Enable Responsive Image source code
By Aki Hamano, on WordPress.org since 2023. 1,000+ active installs.
Enable Responsive Image adds settings to the Image block to display different images depending on the width of the screen. You can add multiple images and set media queries and resolution for each image. Below is its source code for every one of its 11 releases, what changed in the latest one, and how often it ships.
What changed in 1.8.0
Released Nov 4, 2026, 3 months after 1.7.0- Tested to WordPress 7.2
- Drop support for WordPress 7.0
- Drop support for PHP 8.0 and 8.1
- Enhancement: Show when each image source is displayed and collapse its media settings
- Enhancement: Update block sidebar controls to the new WordPress UI components
- Fix: Output image sources whose media query value was reset, using the default value
15 files changed since 1.7.0: 15 modified, 0 added, 0 removed.
- build/index-rtl.css modified, +1,099 bytes
- build/index.asset.php modified, +85 bytes
- build/index.css modified, +1,099 bytes
- build/index.js modified, +320,222 bytes
- enable-responsive-image.php modified, +232 bytes
- readme.txt modified, +678 bytes
- src/block-edit-preview.tsx modified, +67 bytes
- src/constants.ts modified, -63 bytes
- src/editor.scss modified, +727 bytes
- src/icon.tsx modified, same size
And 5 more.
Compare 1.7.0 with 1.8.0Release history
11 releases since December 2023- 1.8.0 Nov 4, 2026 Tested to WordPress 7.2
- 1.7.0 Jul 25, 2026 Tested to WordPress 7.1
- 1.6.1 Jun 19, 2026 Security: Fix stored XSS by using validated media type in source tag
- 1.6.0 Mar 3, 2026 Tested to WordPress 7.0
- 1.5.0 Nov 9, 2025 Tested to WordPress 6.9