[wp-trac] [WordPress Trac] #65195: Tests: Add unit tests for wp_check_locked_posts()
WordPress Trac
noreply at wordpress.org
Thu May 7 16:12:50 UTC 2026
#65195: Tests: Add unit tests for wp_check_locked_posts()
----------------------------+-----------------------------
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_check_locked_posts()
function in wp-admin/includes/misc.php. These tests ensure that the
function correctly identifies locked posts, handles missing or invalid
data in Heartbeat requests, and verifies that the correct user information
(including avatars and collaboration status) is returned based on user
permissions and site options.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65195>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list