Real-time collaboration: Update "Join" action label in post list if lock expires

When RTC is enabled, let the "Join" action link in the post list turn into "Edit" after the post lock expires. Do this by rendering both "Edit" and "Join" as separate spans and toggling visibility via CSS using the `wp-collaborative-editing` class that heartbeat already manages. Do the same to aria-label with screen-reader-text spans so the accessible name stays in sync with the visible text across lock state changes.

Developed in https://github.com/WordPress/wordpress-develop/pull/11346.

Follow-up to [62074].

Props shekharnwagh.
See #64622.


Built from https://develop.svn.wordpress.org/trunk@62146


git-svn-id: http://core.svn.wordpress.org/trunk@61428 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
mcsf
2026-03-26 16:10:38 +00:00
parent 9edf1b7e9a
commit fc38e49a72
6 changed files with 64 additions and 20 deletions

View File

@@ -16,7 +16,7 @@
*
* @global string $wp_version
*/
$wp_version = '7.0-RC1-62145';
$wp_version = '7.0-RC1-62146';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.