Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#42689 closed defect (bug) (duplicate)

Widget editing not possible if locale language code exceeds XXX_XX

Reported by: mkmyuu's profile mkmyuu Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.9
Component: Widgets Keywords:
Focuses: Cc:

Description

The new MediaElementPlayer causes disfunction to the Widget Customizer page (Appearance > Widgets) whenever the language does not match the XXX_XX pattern, for example de_DE_formal (German formal).

Errors:

TypeError: Language code must have format 2-3 letters and. optionally, hyphen, underscore followed by 2 more letters
mediaelement-and-player.min.js:320:10

ReferenceError: MediaElementPlayer is not defined
mediaelement-migrate.min.js:1:342

TypeError: b(...).not(...).filter(...).mediaelementplayer is not a function
wp-mediaelement.min.js:1:453

Change History (2)

#1 in reply to: ↑ description @mkmyuu
7 years ago

Just noticed: Same goes for the Customizer (Appearance > Customizer).

#2 @johnbillion
7 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Thanks for your bug report, @mkmyuu! Welcome to WordPress Trac.

We're already tracking this issue in #42574. It's scheduled to be fixed in WordPress 4.9.1.

You can follow that ticket by clicking the star next to its title.

Note: See TracTickets for help on using tickets.