=== Dprime Media Replace ===
Contributors: dprimesolutions
Tags: media, replace, attachment, library, images
Requires at least: 6.4
Tested up to: 7.1
Requires PHP: 8.2
Stable tag: 1.4.1
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Swap any image or SVG in the Media Library with a new file. Keeps the same attachment ID so every reference across the site updates at once.

== Description ==

WordPress has no built-in way to replace a media file. The usual workaround is to upload a new one and manually update every page, post, and template that references the old file. This plugin removes that work.

Replace links appear in three places:

* Media Library list view: Replace file row action
* Media modal when editing posts: Replace file link in the sidebar
* Edit Media screen: Replace file meta box

Replaces in place. The attachment ID stays the same so every existing reference updates automatically. Old thumbnails are deleted and regenerated.

Allowed: jpg, png, gif, webp, avif, svg.

== Changelog ==

= 1.4.1 =
* Added strict upload, MIME, file-size, path, and filename validation.
* Added Safe SVG prefiltering and safer derivative cleanup after successful replacement.
* Removed server path disclosure from error responses.
* Promoted the verified release to the stable channel.

= 1.2.0 =
* Extracted help tab into includes/help.php. Override CSS class reference added to admin.css.

= 1.1.5 =
* Drag and drop file replacement with thumbnail preview. Dprime plugin checklist compliance pass.

= 1.1.4 =
* Full Dprime design system styling. New admin UI. Canonical menu pattern. Plugin renamed.

= 1.1.1 =
* Previous release.
