Repository navigation
Commit 7f29154
committed
FEAT: added no-JS screenshot link fallback
- Wrapped each <img> in build_image_block() with an <a href="{src}" target="_blank" rel="noopener"> so the no-JS reader still gets a path to the full-resolution screenshot in a new tab.
- Core's lightbox interactivity script attaches its own click handler on hydration and calls preventDefault() before the anchor would navigate, so JS readers keep the existing lightbox flow unchanged.
Affected: wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-screenshots.php1 parent 6af7759 commit 7f29154
1 file changed
Lines changed: 12 additions & 0 deletions
File tree
- wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
364 | 364 | | |
365 | 365 | | |
366 | 366 | | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
367 | 374 | | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
368 | 379 | | |
369 | 380 | | |
370 | 381 | | |
| |||
374 | 385 | | |
375 | 386 | | |
376 | 387 | | |
| 388 | + | |
377 | 389 | | |
378 | 390 | | |
379 | 391 | | |
| |||
0 commit comments