[wp-trac] [WordPress Trac] #42241: MediaElement should use the correct locale string

WordPress Trac noreply at wordpress.org
Mon Oct 16 17:29:55 UTC 2017


#42241: MediaElement should use the correct locale string
--------------------------+-------------------------
 Reporter:  johnbillion   |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.9
Component:  Media         |    Version:  trunk
 Severity:  normal        |   Keywords:  needs-patch
  Focuses:  javascript    |
--------------------------+-------------------------
 The `mejsL10n.language` property is populated by `get_bloginfo( 'language'
 )`. This is incorrect as this data is intended to populate the `lang`
 attribute on the `html` element. `get_locale()` should be used instead.

 Ref: https://core.trac.wordpress.org/browser/trunk/src/wp-includes/script-
 loader.php?rev=41839&marks=357#L354

 See #42071

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


More information about the wp-trac mailing list