=== UPT Live Images (Staging Path-Aware) ===
Contributors: jola, chatgpt
Tags: staging, media, images, migration
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
Stable tag: 1.1.1
License: GPLv2 or later

Automatically imports images from a live site into a WordPress
staging installation – including setups running in a subdirectory.

== Description ==

This plugin is designed for real-world WordPress staging environments
where:

- content originates from a live site
- images physically exist on the live site
- posts and pages are edited on staging

On save:
- images from /wp-content/uploads/ on the live site
  are downloaded into the local media library
- URLs in post content are replaced with local ones
- duplicate imports are prevented

Supports staging installs in subdirectories
such as /projekt14/.

== Typical Workflow ==

1. Staging displays live images via .htaccess fallback
2. You edit a post or page
3. On save:
   - live images are imported locally
   - content URLs are rewritten
4. Images are now served locally

== Installation ==

1. Upload and activate the plugin
2. Go to:
   Settings → UPT Live Images
3. Set Live Base URL (e.g. https://grevenkoper-pute.de/)
4. Set Staging Base URL incl. path
   (e.g. https://demo.qxite.de/projekt14/)
5. Optionally apply the htaccess snippet

== Notes ==

- Import runs only on save
- Only images from /wp-content/uploads/ are processed
- Recommended: 302 redirect for staging fallback
- Remove any old RedirectMatch or 301 upload rules

== Changelog ==

= 1.1.1 =
* Fixed sanitize callback
* Stable save process
* Full support for subdirectory staging
