Linux 软件免费装
Banner图

ETBS Edit Conflict Guard

开发者 etbsjp
更新时间 2026年9月4日 22:10
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

editorial workflow post lock multi author concurrent editing save conflict

下载

1.1.0 1.1.1

详情介绍:

WordPress already tells you when someone else is editing a post: the "currently editing" notice under the post title. That notice is only a warning, though. It does not stop the second editor from clicking Update or Publish, and it does not stop the save. If two people edit the same post around the same time, whoever saves last silently overwrites the other person's changes, and nothing in WordPress core prevents that. ETBS Edit Conflict Guard adds a real, per-post exclusive lock on top of that notice. While one user has a post open for editing, it blocks every other user from saving it, and it tells them clearly why. How it works All post types that have an admin UI are covered by default (attachments are excluded); any of them can be excluded from the Settings screen. The lock check only runs at the moment Save/Update/Publish is clicked — simply opening the edit screen shows nothing extra. Settings Under Settings > Edit Conflict Guard: Known limitations Edit Conflict Guard is intentionally strict and, as a result, has a few rough edges worth knowing about up front:
  1. Block Editor trash notice. When the "Move to trash" action is blocked, the server correctly rejects it (the post stays published), but the Block Editor itself may briefly show a "Moved to trash" success notice anyway. This is WordPress core's own optimistic UI, not a lock failure — reloading the post list confirms the post was never actually moved.
  2. Bulk trash actions. If the trash guard is enabled and a bulk "Move to Trash" action from the post list includes a locked post, processing stops at that post; posts later in the batch are left unprocessed.
  3. Permanent deletion bypasses the trash guard. The trash guard only covers moves to the trash. A permanent delete that skips the trash entirely — for example wp.deletePost over XML-RPC on a custom post type, which WordPress core deletes outright instead of trashing — is not blocked, even while the post is locked.
  4. No Multisite support. Locks are not aware of, or shared across, sites in a Multisite network.
  5. Locks apply to the holder too. By design, even the user who holds the lock is blocked from saving the same post from a second tab or window. This is deliberate, not a bug — the plugin cannot tell two tabs from two different editors.

安装:

  1. Upload the plugin files to the /wp-content/plugins/etbs-edit-conflict-guard directory, or install the plugin directly through the WordPress plugins screen.
  2. Activate the plugin through the "Plugins" screen in WordPress.
  3. Go to Settings > Edit Conflict Guard to review the lock expiration, excluded post types, and trash guard option.

屏幕截图:

  • The "Currently Locked Posts" table on the settings screen, listing each locked post with its editor, lock time, expiration, and a Force Release button.
  • The save-blocked modal shown in the Classic Editor when another user already holds the lock on the post being saved.
  • The save-blocked modal shown in the Block Editor (Gutenberg) when another user already holds the lock on the post being saved.
  • The support links as they appear on the Plugins list row and in the footer of the Settings > Edit Conflict Guard screen.

升级注意事项:

1.0.3 Uninstalling in earlier versions deleted your saved lock-expiration and excluded-post-type settings. Update to keep your settings when uninstalling.

常见问题:

How is this different from the "Someone else is editing this" notice WordPress already shows?

That built-in notice is informational only; it does not stop a second user from saving. This plugin adds an actual block: if someone else holds the lock, clicking Save/Update/Publish is refused (the request is rejected with an HTTP 409 response) and the user sees a modal explaining why, instead of silently overwriting the other person's changes.

A lock seems stuck. How do I clear it?

Locks release automatically once their expiration time (set under Settings > Edit Conflict Guard) passes without the holder's edit screen sending a Heartbeat, for example if their browser tab was closed without saving. If you need it cleared immediately, an administrator can open Settings > Edit Conflict Guard and use the Force Release button next to that post in the "Currently Locked Posts" table.

Does this plugin work on Multisite?

Not currently. Locks are per-site; there is no cross-site awareness in a Multisite network.

I blocked a trash action, but the screen still said "Moved to trash". Did it fail?

No — the post was not moved. This happens only in the Block Editor: WordPress core shows an optimistic success notice before the server response arrives, and the server has already rejected the request. Reloading the post list will show the post still in its original status.

Can the person who holds the lock still lock themselves out?

Yes, deliberately. If the same user opens the same post in a second tab, the second tab is blocked from saving just like any other user would be. The plugin has no way to tell that both tabs belong to the same person, so it applies the same rule to everyone.

更新日志:

1.1.1 1.1.0 1.0.3 1.0.2 1.0.1 1.0.0