[wp-trac] [WordPress Trac] #65315: Inserting the same image with different captions on the same page results in figcaptions with duplicate `id` elements.
WordPress Trac
noreply at wordpress.org
Thu Jun 4 18:57:05 UTC 2026
#65315: Inserting the same image with different captions on the same page results
in figcaptions with duplicate `id` elements.
-------------------------------------------------+-------------------------
Reporter: SteelWagstaff | Owner: joedolson
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 7.1
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests changes- | Focuses:
requested | accessibility
-------------------------------------------------+-------------------------
Comment (by jamesbregenzer):
I submitted https://github.com/SteelWagstaff/wordpress-develop/pull/1 to
update the media caption shortcode tests for the current behavior in PR
11940.
The media test suite now passes locally:
`npm run test:php -- tests/phpunit/tests/media.php`
Result:
`Tests: 326, Assertions: 999, Skipped: 1.`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65315#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list