[wp-trac] [WordPress Trac] #65126: Implement a lock mechanism for Site Editor templates (wp_template, wp_template_part) similar to the existing Heartbeat-based post locking system.
WordPress Trac
noreply at wordpress.org
Fri Apr 24 16:07:35 UTC 2026
#65126: Implement a lock mechanism for Site Editor templates (wp_template,
wp_template_part) similar to the existing Heartbeat-based post locking
system.
-------------------------------------------------+-------------------------
Reporter: sparshie | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: Editor | Version: 6.9.4
Severity: normal | Keywords: needs-patch
Focuses: administration, template, |
performance |
-------------------------------------------------+-------------------------
Currently, the WordPress Heartbeat API provides a reliable post locking
mechanism for standard post types (e.g., post, page, article) where a
postID is available. This prevents concurrent editing and ensures content
integrity.
However, this mechanism does not function correctly for Site Editor
entities such as wp_template and wp_template_part. Since these are managed
through the Site Editor and do not follow the traditional post editing
flow, the default locking behavior fails, leading to potential conflicts
when multiple users edit the same template simultaneously.
This creates a gap in collaborative editing workflows, especially for
teams working extensively with Full Site Editing (FSE).
A custom solution has been identified to address this limitation by
introducing a lock mechanism tailored for Site Editor entities. The
proposed approach ensures:
Proper identification and locking of wp_template and wp_template_part
entities
Prevention of simultaneous edits across multiple users
Consistent behavior aligned with the existing Heartbeat-based locking
system
Further implementation details and validation of the solution can be
provided.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65126>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list