[wp-trac] [WordPress Trac] #55664: WP post embed: missing labels and duplicate IDs

WordPress Trac noreply at wordpress.org
Thu May 5 16:46:49 UTC 2022


#55664: WP post embed: missing labels and duplicate IDs
---------------------------------------+-----------------------------
 Reporter:  afercia                    |       Owner:  (none)
     Type:  defect (bug)               |      Status:  new
 Priority:  normal                     |   Milestone:  Future Release
Component:  Embeds                     |     Version:
 Severity:  normal                     |  Resolution:
 Keywords:  has-screenshots has-patch  |     Focuses:  accessibility
---------------------------------------+-----------------------------
Changes (by swissspidy):

 * milestone:  Awaiting Review => Future Release


Comment:

 Ah right, that makes sense. Hmm.

 What about using the post ID then instead of `uniqid`/`wp_unique_id`?

 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.

 To address these edge cases, the IDs could be updated using JavaScript.
 For example by using the unique secret/hash passed to each iframe.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55664#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list