=== UKH Pre-Update Backup Rollback ===
Contributors: khamami
Tags: backup, update, rollback, recovery, safeguard
Requires at least: 5.8
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatic backup of files and database BEFORE WordPress updates. One-click rollback if your site breaks after an update.

== Description ==

**UKH Pre-Update Backup Rollback** prevents the most common WordPress disaster: a site going down after an update.

Every time you update WordPress core, a plugin, or a theme, this plugin automatically creates a snapshot of your `wp-content` directory and database first. If anything breaks, restore your entire site to its pre-update state with one click — no technical skills needed.

= Features =

* **Automatic pre-update backup** — snapshot taken before every core, plugin, or theme update
* **Manual backup** — create a backup anytime from Tools → UKH Pre-Update Backup
* **One-click rollback** — restore files and database to any previous snapshot
* **Full snapshot** — complete `wp-content` (themes, plugins, uploads) + full database dump
* **Multiple backups** — keep several restore points, delete old ones when not needed
* **Protected storage** — backups are stored in `wp-content/upbk-backups/` and blocked from direct web access

= How it works =

1. Before an update runs, the plugin automatically creates a snapshot (files + database)
2. If your site has problems after the update, go to Tools → UKH Pre-Update Backup
3. Click "Rollback" on the latest backup — your site returns to its exact pre-update state

= Who needs this? =

* Sites that cannot afford downtime (business, e-commerce, membership)
* Developers testing plugin/theme updates on production sites
* Anyone tired of manually restoring backups after a bad update

== Installation ==

1. Upload the `ukh-pre-update-backup-rollback` folder to `/wp-content/plugins/`, or install via the WordPress plugin screen
2. Activate the plugin through the 'Plugins' menu
3. Open Tools → UKH Pre-Update Backup

== Frequently Asked Questions ==

= Are backups created automatically? =

Yes. A backup is created automatically before every WordPress core, plugin, or theme update. You can also create manual backups anytime.

= Where are backups stored? =

In `wp-content/upbk-backups/`, protected from direct web access by `.htaccess`.

= How large are backups? =

The size depends on your site. The snapshot includes your full `wp-content` directory and a complete database dump. Delete old backups from the admin page to save disk space.

= Can I restore a single file only? =

No. Rollback restores the complete snapshot (files + database) so your site returns exactly to its pre-update state.

== Changelog ==
= 1.0.3 =
* Fixed Plugin URI to resolve correctly (ukhtechnologies.my.id).
* Replaced any remaining extractTo usage with manual per-file extraction and strict path validation.

= 1.0.2 =
* Updated Plugin URI and Author URI to live landing domain (ukhtechnologies.my.id).
* Landing page redesigned with standalone navbar, bilingual toggle (ID/EN), and professional layout.


= 1.0.1 =
* Renamed plugin to a distinctive, brand-prefixed name (UKH Pre-Update Backup Rollback).
* All functions, classes, globals and option names now use the `upbk_` prefix to avoid collisions.
* Fixed path-traversal hardening in rollback/restore (strict backup-ID sanitization + realpath containment + zip-slip guard).

= 1.0.0 =
* Initial release.
* Automatic pre-update backup for core, plugins, and themes.
* Manual backup and one-click rollback.
* Full wp-content + database snapshots.

== Upgrade Notice ==

= 1.0.1 =
Security and naming fixes per WordPress.org Plugin Review Team feedback.

= 1.0.0 =
Initial release.
