Linux 软件免费装
Banner图

PressBrake

开发者 miriyamcore
更新时间 2026年9月23日 02:25
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

admin permalink content protection safety plugin management

下载

1.0.0 1.1.0

详情介绍:

PressBrake adds a lightweight safety layer around three common administrative mistakes: Each brake is independent and can be disabled under Settings > PressBrake. Disabled brakes do not register their operational hooks or load their assets. Optional deletion confirmation code By default, PressBrake works exactly as before: its existing confirmation paths remain available and no code is required. A super admin can optionally set a deletion confirmation code in Settings > PressBrake. When a code is set, strict mode is active. Only super admins can change PressBrake settings or manage content and plugin protection controls. Users who already have the normal WordPress permission to delete content or manage plugins still use the usual WordPress screens, but protected content trash/permanent deletion and protected plugin deactivation/deletion require the code. The code is stored only as a WordPress password hash. On multisite, one code applies across the network. Strict mode is an administrative safety control, not a boundary against a site owner with server access or someone able to deactivate PressBrake. The documented PRESSBRAKE_BYPASS recovery mechanism remains available for emergencies. URL Brake Warns before a slug or parent change alters the URL of published posts, pages, or supported public custom post types. It shows the existing and proposed URL when WordPress can calculate both. PressBrake does not create redirects. Content Brake Adds a PressBrake Protection panel to supported content. Protected items require a deliberate, action-specific override before destructive or structural changes. The configured static front page and posts page receive enhanced warnings without being silently marked as manually protected. Plugin Brake Adds a private administrative note and optional protection control to each installed plugin. Protected plugins require a deliberate override before individual deactivation or deletion and are skipped by bulk actions. Multisite network controls use network-scoped data and capabilities. PressBrake is not a security firewall. It does not prevent a determined administrator with server access from changing the site. It prevents accidental actions through supported WordPress administrative workflows. No data leaves the website. PressBrake makes no external requests, adds no frontend cookies, and stores no personal data. Protection settings, post metadata, and private plugin notes remain inside WordPress.

安装:

  1. Upload the pressbrake directory to /wp-content/plugins/, or install the ZIP from Plugins > Add New > Upload Plugin.
  2. Activate PressBrake.
  3. Review Settings > PressBrake.
  4. Use the PressBrake Protection panel on content and the PressBrake control links on the Plugins screen.

屏幕截图:

  • Block Editor sidebar showing the PressBrake Protection panel for protected content.
  • Plugin protection control with a private administrative note.
  • Accessible confirmation dialog before deactivating a protected plugin.

升级注意事项:

1.1.0 Optional strict-mode deletion confirmation code. Existing installations keep their current behavior until a super admin sets a code. 1.0.0 Initial release.

常见问题:

Does PressBrake create redirects after a URL change?

No. Version 1.0 only confirms the change.

Are plugin notes public?

No. Notes are rendered only in plugin administration to users with plugin-management capabilities.

What happens on deactivation or uninstall?

Deactivation keeps all data. Uninstall also keeps data unless "Delete PressBrake data when uninstalled" was deliberately enabled. On multisite, each site is evaluated independently; network plugin records are removed only when every site opted into cleanup. Eligible cleanup removes pressbrake_settings, pressbrake_data_version, plugin records, and _pressbrake_protected post metadata. It does not delete unrelated data.

Does PressBrake block WP-CLI, imports, cron, autosaves, or revisions?

No by default. Background and programmatic updates are left alone. Developers can opt into guarding programmatic post updates with the documented filter.

What if I forget the deletion confirmation code?

There is intentionally no public reset route. A super admin can change or remove a known code by entering the current code in PressBrake settings. If it is forgotten, a site owner with server access can use the documented PRESSBRAKE_BYPASS recovery mechanism temporarily, remove or update the code in a controlled maintenance session, and then remove the bypass constant.

更新日志:

1.1.0 1.0.0