=== AddonLogic Safe Database Search-and-Replace ===
Contributors: snehalpancholi
Tags: database, search replace, admin tool, developer, maintenance
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A guarded admin tool to search and replace strings across selected database tables with dry-run preview and serialization-safe processing.

== Description ==

AddonLogic Safe Database Search-and-Replace gives administrators a secure way to find and replace strings across WordPress database tables without risking corrupted serialized data.

**Features:**

* Search across wp_options, wp_posts, wp_postmeta, wp_usermeta, wp_commentmeta, wp_comments, wp_users, wp_terms, and wp_termmeta
* Dry-run preview mode — see exactly what would change before touching the database
* Serialization-safe — handles PHP serialized arrays and objects correctly
* Select/deselect individual tables
* Confirmation prompt before any real replace runs
* Admin-only access (manage_options capability)
* Nonce-protected form

== Installation ==

1. Upload the `safe-database-search-replace` folder to `/wp-content/plugins/`.
2. Activate the plugin via the Plugins screen.
3. Go to **Tools → DB Search & Replace**.

== Frequently Asked Questions ==

= Is a dry run safe? =
Yes. The dry-run mode reads but never writes. It shows you exactly how many rows in each table would be affected.

= Does it handle serialized data? =
Yes. Values are unserialized before replacing and re-serialized after, so arrays and objects stored in wp_options stay intact.

= Who can use this tool? =
Only users with the `manage_options` capability (Administrators by default).

== Changelog ==

= 1.0.0 =
* Initial release.
