Enable Responsive Image source code

By Aki Hamano, on WordPress.org since 2023. 1,000+ active installs.

Browse code Download zip

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.

And 5 more.

Compare 1.7.0 with 1.8.0

Release history

11 releases since December 2023
  1. 1.8.0 Nov 4, 2026 Tested to WordPress 7.2
  2. 1.7.0 Jul 25, 2026 Tested to WordPress 7.1
  3. 1.6.1 Jun 19, 2026 Security: Fix stored XSS by using validated media type in source tag
  4. 1.6.0 Mar 3, 2026 Tested to WordPress 7.0
  5. 1.5.0 Nov 9, 2025 Tested to WordPress 6.9
Full Enable Responsive Image changelog with diffs

Source of 1.8.0

17 files
Browse all Enable Responsive Image 1.8.0 files Browse trunk