Linux 软件免费装
Banner图

Block Rewind – Version History for Blocks

开发者 rajdeep95
更新时间 2026年11月11日 22:31
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

restore block editor revisions version history undo

下载

1.0.0 1.0.1

详情介绍:

WordPress revisions save the whole post, and only when you save it. Undo works step by step, and only for the whole post. Block Rewind keeps a short history for each block, so you can bring back a paragraph you rewrote ten minutes ago without losing everything you changed since. Select a block and click the Block Rewind button in the editor's top bar to see its versions. Features What it does not do Source code The plugin's JavaScript in the build folder is compiled from the source in the src folder, which is included in the plugin. Development happens on GitHub: rajdeepgaur/block-rewind. To build the plugin yourself, clone the repository and run npm install and then npm run build.

安装:

  1. In your WordPress admin, go to Plugins → Add New Plugin and search for "Block Rewind".
  2. Click Install Now, then Activate.
  3. Edit a post or page, select a block, and click the Block Rewind button in the editor's top bar.

屏幕截图:

  • Comparing a version with the block as it is now, before restoring it.
  • The text changes a restore would make, word by word.

常见问题:

Where is the history stored?

In your browser's IndexedDB storage, separately for each site and each user. It never leaves your browser.

Why did my history disappear?

Versions are removed after 4 hours by default. History is also not available when you edit in another browser, on another device, in a private window, or after clearing the site's data in your browser.

Can other people see my history?

No. Each user's history is stored in their own browser, and other users of the same site can't see it.

Does it replace WordPress revisions?

No. Revisions keep the whole post for as long as you like. Block Rewind keeps a short, detailed history of each block while you work. They work well together.

Does the plugin change my content?

When you first edit a block, Block Rewind adds a short random ID to it (the blockRewindId attribute), so the block can find its history again. The ID is saved with the post when you save it. It holds no personal data and does not change how the block looks.

What happens if I deactivate the plugin?

Your content is not affected. WordPress ignores the block IDs, and they are removed the next time you save a post. History already stored in your browser is no longer shown and is removed when you clear the site's data in your browser.

Does it work in the Site Editor, or with templates and patterns?

Not yet. Block Rewind works in the post and page editor, for posts, pages and custom post types. While you edit a template or synced pattern from a post, history pauses and resumes when you return to the post.

Can I change how long history is kept?

Yes, with two filters. For example, to keep history for 8 hours and up to 200 versions per block: add_filter( 'block_rewind_snapshot_ttl', function () { return 8 * HOUR_IN_SECONDS; } ); add_filter( 'block_rewind_max_snapshots_per_block', function () { return 200; } ); Retention is at least 5 minutes, and at least 5 versions are kept per block.

What happens when the browser's storage is full?

The sidebar tells you that new versions can't be saved. Existing versions stay available, and your post is not affected. Saving starts again once the browser has space.

更新日志:

1.0.1 1.0.0