Make WordPress Core

Opened 6 years ago

Closed 6 years ago

Last modified 5 years ago

#47355 closed defect (bug) (fixed)

Opening/closing tag mismatch in media templates

Reported by: travisseitler's profile TravisSeitler Owned by: sergeybiryukov's profile SergeyBiryukov
Milestone: 5.3 Priority: normal
Severity: normal Version: 5.0
Component: Media Keywords:
Focuses: Cc:

Description

When looking into another issue I realized both the #tmpl-audio-details and #tmpl-video-details templates in [src/wp-includes/media-template.php] have mismatched tags for input field labels. (In both cases, the opening tag is a <label> but the closing tag is a </span>.)

#tmpl-audio-details: https://core.trac.wordpress.org/browser/trunk/src/wp-includes/media-template.php#L1138
#tmpl-video-details: https://core.trac.wordpress.org/browser/trunk/src/wp-includes/media-template.php#L1273

Attachments (1)

47355.diff (1.5 KB) - added by TravisSeitler 6 years ago.

Download all attachments as: .zip

Change History (6)

@TravisSeitler
6 years ago

#1 @SergeyBiryukov
6 years ago

  • Component changed from General to Login and Registration
  • Milestone changed from Awaiting Review to 5.3
  • Version set to 5.0

Hi @TravisSeitler, welcome to WordPress Trac! Thanks for the ticket.

Introduced in [42444].

#2 @SergeyBiryukov
6 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 45381:

Media: Correct closing </label> tags in #tmpl-audio-details and #tmpl-video-details after [42444].

Props TravisSeitler.
Fixes #47355.

#3 @SergeyBiryukov
6 years ago

  • Component changed from Login and Registration to Media

#4 @afercia
6 years ago

Thanks for the ticket and the fix :) @SergeyBiryukov quick question: should tests/qunit/index.html be updated or it's considered legacy and not really used any longer?

#5 @desrosj
5 years ago

#48159 was marked as a duplicate.

Note: See TracTickets for help on using tickets.