WordPress-Android icon indicating copy to clipboard operation
WordPress-Android copied to clipboard

Alt text of the media on the self hosted sites is not visible in Media Browser

Open khaykov opened this issue 7 years ago • 8 comments

Corresponding iOS issue.

Steps to reproduce:

  1. On self-hosted website navigate to media browser.
  2. Open media settings of an image.
  3. Add Alt text.

Image from Gyazo

  1. Open the media details of same image in the App.
  2. Notice that Alt text is missing.

Image from Gyazo

khaykov avatar Oct 04 '18 00:10 khaykov

So looks like the XML-RPC endpoint just doesn't return the alt property to us 🤷‍♂️

https://codex.wordpress.org/XML-RPC_WordPress_API/Media#wp.getMediaItem

khaykov avatar Oct 04 '18 01:10 khaykov

We received the following user report that I think is a match for this issue (or very close, at least in terms of media meta data as it relates to image titles disappearing):

disappearing image tags/alt text

and

this happens when I'm logged in into app via url alt text keeps and titles disappear after I type them

  • App version: 18.3
  • Device model: Samsung SM-N975U
  • OS version: Android 11
  • Type of site: Jetpack

(internal references: 4372569-zen and p4a5px-2Mz-p2 /hat tip @thabotswana)

designsimply avatar Oct 19 '21 15:10 designsimply

@designsimply I think this issue will still persist because on a self hosted site's the XML-RPIC endpoint doesn't return the alt value. So this error is API related and cannot be resolved by us.

So looks like the XML-RPC endpoint just doesn't return the alt property to us 🤷‍♂️

https://codex.wordpress.org/XML-RPC_WordPress_API/Media#wp.getMediaItem

jd-alexander avatar Nov 01 '21 20:11 jd-alexander

Thanks for reporting! 👍

dangermattic avatar Jan 03 '25 15:01 dangermattic

Hey all - I would love to see this issue worked on. Here's a related Trac ticket. https://core.trac.wordpress.org/ticket/59414

Also, @kean can you please put the accessibility label back on the issue? As it is, there's no way to write alt text for featured images in the mobile app, which is an accessibility issue.

amberhinds avatar Jan 13 '25 06:01 amberhinds

Also, this ticket is related and closed as fixed by @JoeDolson - perhaps it gives you what you need? https://core.trac.wordpress.org/ticket/58582

amberhinds avatar Jan 13 '25 06:01 amberhinds

@amberhinds – we're adopting this, but in a slightly different manner than provided by the trac ticket. We're switching from using XML-RPC to the REST API, and this is among the first features we'll deliver that are powered by the REST API.

jkmassel avatar May 08 '25 22:05 jkmassel

That's amazing! I'm glad to hear it. I'll be interested to see how the switch to use the REST API goes. Thank you!

amberhinds avatar May 09 '25 16:05 amberhinds