Devenia Replace Media

Changelog

1.8.0

  • Added: media/replace-from-url and media/replace-base64 abilities for MCP/Abilities clients.
  • Improved: Admin replacement flow and automation replacement flow now share the same safer staged replace logic.

1.7.5

  • Fixed: Replace File button injection in Media Library grid/details view on newer WordPress admin markup
  • Improved: More robust attachment ID detection across WP media frames and DOM
  • Fixed: Media Library grid view details modal now detects attachment ID via ?item=<ID>
  • Improved: Cache busting now also applies to responsive image srcset and works across repeated replacements
  • Improved: After replacement, Media Library refresh behavior is more reliable
  • Improved: Safer file replacement flow (staged write + rollback) and stricter permissions check

1.7.4

  • Added: Replace File button on Edit Media screen

1.7.3

  • Fixed: Use wp_add_inline_script() and wp_print_inline_script_tag() instead of raw script tags
  • Fixed: Added nonce verification for GET requests to replacement page
  • Fixed: Wrapped require_once calls with function_exists checks
  • Fixed: Improved file upload validation with is_uploaded_file(), sanitize_file_name(), and sanitize_mime_type()
  • Added: User capability check (upload_files) in replacement function
  • Improved: Better code documentation and WordPress Coding Standards compliance

1.7.2

  • Changed slug to devenia-replace-media (WordPress.org requirement)

1.7.1

  • Fixed text domain to match plugin slug

1.7

  • Fixed nonce verification warnings in file upload handling
  • Improved input validation for WordPress.org Plugin Check compliance
  • Shortened short description to meet 150 character limit

1.6

  • Uses WordPress Filesystem API for all file operations
  • Improved security and WordPress.org compatibility

1.5

  • Added automatic cache busting – URLs now include version parameter after replacement
  • Helps caches fetch updated files without manual cache clearing

1.4

  • Added support for Elementor gallery editor
  • Uses elementor/editor/footer hook for proper script loading

1.3

  • Changed script loading method for better compatibility

1.2

  • Improved attachment ID detection in media modals

1.1

  • Added JavaScript injection for media modal support

1.0

  • Initial release
  • Replace files from Media Library list view
  • Preserve metadata and regenerate thumbnails

Plugin Website
Visit website

Version:
1.8.0
Last Updated
May 31, 2026
Active Installs
50
Requires
WordPress 5.7
Tested Up To
WordPress 7.0
Requires PHP
7.4

Share Post

Join our newsletter.

Get insights into what’s happening at ChangelogWP right in your inbox. We don’t believe in spam.