Linux 软件免费装
Banner图

Lucid Search & Replace - Safe Database Find and Replace with Preview and Undo

开发者 ibrahimhajjaj
更新时间 2026年8月23日 23:54
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

migration elementor database serialized search replace

下载

1.0.0

详情介绍:

Changing a domain, moving off a staging URL, or switching to HTTPS means rewriting text all through your database. Most tools do it blind: you type into a box, press go, and hope. When the value is serialized (theme settings, Elementor layouts, WooCommerce data) a plain replace miscounts the length prefix and corrupts the row, and there is no way back. Lucid Search & Replace is built the other way around. You preview representative matches before anything is written, can take a safety snapshot, and can undo unchanged cells while that snapshot is retained. Nothing about that is held behind an upgrade. What makes it safe Built for real sites A note on the paid product The search and replace here is complete and free. If you are moving an entire site rather than rewriting text, SafeGuard handles full migrations with scheduled off-site backups. It is mentioned in the plugin's own Pro Tools tab and nowhere else. You never need it to use everything on this page. Source code and build process The full, uncompiled source lives at https://github.com/ibrahimhajjaj/lucid-search-replace The admin screen is a TypeScript and React application under src/. The shipped build/index.js and build/style-index.css are generated from it with @wordpress/scripts (webpack). To reproduce them from a checkout: composer install npm install npm run build npm run package assembles the distributed zip. Translation templates are regenerated with npm run make-pot. Bundled third-party library: Action Scheduler by Automattic (GPL-3.0-or-later), https://github.com/woocommerce/action-scheduler, installed under vendor/ via Composer and used for background batch processing.

安装:

  1. Upload the plugin to wp-content/plugins/lucid-search-replace, or install it from the Plugins screen.
  2. Activate it.
  3. Open Tools then Lucid Search & Replace.
  4. Enter what to find and what to replace it with, press Preview changes, review the diff, then apply.
Always run a preview first. It never writes anything.

屏幕截图:

  • The visual diff preview, grouped by table, showing exactly what changes.
  • The confirmation step, where you can enable a safety snapshot before applying.
  • The result, with one-click undo when a retained snapshot is available.

升级注意事项:

1.0.0 Initial release.

常见问题:

Will this corrupt my serialized data?

No. When a value is serialized the engine parses it, replaces inside the structure, and re-serializes so the byte-length prefixes are recalculated correctly. A value it cannot parse is skipped and reported rather than guessed at, so a broken row is never written.

Does it work with Elementor and other page builders?

Yes. Builders store URLs as JSON inside serialized data with escaped slashes. The engine detects that, decodes the JSON, replaces, and re-encodes in the original escaping style. The preview marks those rows so you can see it working.

Is the preview really free?

Yes. The visual diff is never restricted. It retains up to 20 representative matches per table, and apply is bound to the completed preview so new candidates are not silently added afterward.

Can I undo a replace?

When you enable the safety snapshot at confirmation, the success screen offers Undo while the snapshot is retained. Undo restores a cell only if it still contains the value written by that run, so later edits are preserved and reported as conflicts. Snapshots are pruned after 30 days.

What is protected by default?

Network-global tables, including users and usermeta, are excluded from site-level runs so a site administrator cannot damage network data or logins. Post GUIDs are protected by default and can be included from the Advanced options.

How does it handle a large database?

Processing runs in bounded background batches and persists progress after each batch. This reduces request-timeout risk and lets work continue after you leave the page.

Can I use it from WP-CLI?

Yes. wp safesr replace 'http://staging.example.com' 'https://example.com' --dry-run wp safesr replace 'http://staging.example.com' 'https://example.com' wp safesr undo --dry-run reports what would change without writing. Every apply creates the same snapshot the admin does.

更新日志:

1.0.0