WordPress.org

Making WordPress.org

Opened 6 months ago

Last modified 5 weeks ago

#5846 new defect

WPTV: Subtitle attachment info stays even after subtitle file is removed — at Version 1

Reported by: Nao Owned by:
Milestone: Priority: normal
Component: WordPress.tv Keywords:
Cc:

Description (last modified by Nao)

When an approved subtitle file is deleted, it remains as approved subtitles. Because of this, a new file for the same language can't be uploaded.

Steps to reproduce:

  1. Upload a subtitle file
  2. Approve that subtitles
  3. Delete the subtitle file (WITHOUT unchecking ”approved”)
  4. The video still displays the subtitle language on the frontend sidebar, but if you click the language link you get an error: LOCALE is not a supported language (e.g. see the English (Canada) link, attached to this video)
  5. Also, from the backend of the video's attachment information, the subtitle seems not selected. In the example case above, the English (Canada) subtitle attachment ID value is 0 (admin link).

Expected behavior:
When an approved subtitle file is deleted, WPTV should consider that the video no longer has subtitles for the language.

Change History (1)

#1 @Nao
6 months ago

  • Description modified (diff)
Note: See TracTickets for help on using tickets.