[wp-trac] [WordPress Trac] #59006: No title attribute on oEmbed and REST API <link>s

WordPress Trac noreply at wordpress.org
Tue Aug 8 19:24:56 UTC 2023


#59006: No title attribute on oEmbed and REST API <link>s
-------------------------------------+-----------------------------
 Reporter:  edent                    |      Owner:  (none)
     Type:  defect (bug)             |     Status:  new
 Priority:  normal                   |  Milestone:  Awaiting Review
Component:  Embeds                   |    Version:  6.2.2
 Severity:  normal                   |   Keywords:  has-screenshots
  Focuses:  accessibility, rest-api  |
-------------------------------------+-----------------------------
 By default, WordPress adds three `<link rel="alternate" ...` to the
 `<head>` of every post.

 These are missing the `title="..."` attribute. This means that some
 browsers will announce the links as "alternate" with no explanation of
 their destination - see screenshot attached.

 The three links are:

 {{{
 <link rel="alternate" type="application/json" href="https://example.com
 /wp-json/wp/v2/posts/123" />
 <link rel="alternate" type="application/json+oembed"
 href="https://sexample.com/wp-
 json/oembed/1.0/embed?url=https%3A%2F%2Fexample.com%2Fpost%2F" />
 <link rel="alternate" type="text/xml+oembed" href="https://example.com/wp-
 json/oembed/1.0/embed?url=https%3A%2F%2Fexample.com%2Fpost%2F&format=xml"
 />
 }}}

 Ideally, these would have `title="JSON"`, `title="oEmbed (JSON)"`,
 `title="oEmbed (XML)"` or similar.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/59006>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list