[wp-trac] [WordPress Trac] #55664: WP post embed: missing labels and duplicate IDs
WordPress Trac
noreply at wordpress.org
Mon May 9 13:23:55 UTC 2022
#55664: WP post embed: missing labels and duplicate IDs
-------------------------------------------------+-------------------------
Reporter: afercia | Owner: joedolson
Type: defect (bug) | Status: accepted
Priority: normal | Milestone: 6.1
Component: Embeds | Version:
Severity: normal | Resolution:
Keywords: has-screenshots has-patch needs- | Focuses:
refresh | accessibility
-------------------------------------------------+-------------------------
Comment (by afercia):
> Why does using the post ID for the IDs not work?
> Seems unlikely that one would embed the same post twice on a page, or
that two embeds from different websites have the same post IDs.
It's unlikely but still possible. I'd propose a combination of the post ID
+ `wp_rand()`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55664#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list