[wp-trac] [WordPress Trac] #42574: MediaElement upgrade causing JS errors when certain languages are in use e.g de_DE-formal

WordPress Trac noreply at wordpress.org
Thu Nov 16 10:36:26 UTC 2017


#42574: MediaElement upgrade causing JS errors when certain languages are in use
e.g de_DE-formal
----------------------------------------+-----------------------------
 Reporter:  erich_k4wp                  |      Owner:
     Type:  defect (bug)                |     Status:  new
 Priority:  normal                      |  Milestone:  Awaiting Review
Component:  External Libraries          |    Version:  4.9
 Severity:  normal                      |   Keywords:
  Focuses:  javascript, administration  |
----------------------------------------+-----------------------------
 Also JavaScript errors in a language with a locale code such as de_DE-
 formal:

 mediaelement-and-player.js lineno. 318

 {{{
 if (!/^[a-z]{2,3}((\-|_)[a-z]{2})?$/i.test(args[0])) {
   throw new TypeError('Language code must have format 2-3 letters and.
 optionally, hyphen, underscore followed by 2 more letters');
 }
 }}}

 reference [https://core.trac.wordpress.org/ticket/42071 #42071]

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


More information about the wp-trac mailing list