[wp-trac] [WordPress Trac] #65196: Tests: Add unit tests for wp_refresh_post_lock()
WordPress Trac
noreply at wordpress.org
Thu May 7 16:29:05 UTC 2026
#65196: Tests: Add unit tests for wp_refresh_post_lock()
----------------------------+-----------------------------
Reporter: pbearne | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version:
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
This ticket adds comprehensive unit tests for the wp_refresh_post_lock()
function in wp-admin/includes/misc.php. These tests ensure that the
function correctly updates the post lock, handles invalid post IDs, and
returns the appropriate Heartbeat response data (including updated lock
and nonces if necessary).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65196>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list