Repository navigation
Commit 3d462b2
RTC: Fix stuck "Join" link in post list when lock expires (#76795)
* RTC: Fix stuck "Join" link in post list when lock expires
Always render both "Edit" and "Join" as separate spans in the row
action link and toggle visibility via CSS using the
.wp-collaborative-editing class the heartbeat already manages.
Replaces aria-label with screen-reader-text spans so the accessible
name stays in sync with the visible text across lock state changes.
* RTC: Fix checkbox not showing for locked posts in post list
The CSS selectors used `.wp-locked` to override core's hidden
checkbox, but core's list-tables.css uses `tr.wp-locked` which
has higher specificity. The `display: revert` rule never took
effect, leaving checkboxes hidden on locked rows.
* RTC: Use sprintf with multi-line template for action link markup
* RTC: Target .wp-locked for Edit/Join toggle in compat layer
The CSS was targeting .wp-collaborative-editing, a class only set
by core 7.0's inline-edit-post.js. The compat layer runs on older
versions where the heartbeat uses .wp-locked, so the toggle never
worked. Since this CSS is only output when RTC is enabled,
.wp-locked always means collaborative editing here.
----
Co-authored-by: shekharnwagh <shekharnwagh@git.wordpress.org>
Co-authored-by: ellatrix <ellatrix@git.wordpress.org>
Co-authored-by: chriszarate <czarate@git.wordpress.org>1 parent d3ec009 commit 3d462b2
2 files changed
Lines changed: 60 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
| 237 | + | |
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| |||
253 | 254 | | |
254 | 255 | | |
255 | 256 | | |
| 257 | + | |
| 258 | + | |
256 | 259 | | |
257 | | - | |
258 | | - | |
| 260 | + | |
| 261 | + | |
259 | 262 | | |
260 | 263 | | |
261 | | - | |
| 264 | + | |
262 | 265 | | |
263 | 266 | | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
264 | 282 | | |
265 | 283 | | |
266 | 284 | | |
| |||
288 | 306 | | |
289 | 307 | | |
290 | 308 | | |
291 | | - | |
| 309 | + | |
292 | 310 | | |
293 | 311 | | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
294 | 317 | | |
295 | 318 | | |
296 | 319 | | |
297 | 320 | | |
298 | 321 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
304 | | - | |
| 322 | + | |
305 | 323 | | |
306 | 324 | | |
307 | 325 | | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
315 | 354 | | |
316 | 355 | | |
317 | 356 | | |
0 commit comments