[wp-trac] [WordPress Trac] #36491: Prevent attempting to load en_US translation files

WordPress Trac noreply at wordpress.org
Tue Apr 12 10:04:43 UTC 2016


#36491: Prevent attempting to load en_US translation files
--------------------------+-----------------------------
 Reporter:  jrf           |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  I18N          |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 As `en_US` is the default language, there is no need to attempt to load
 translation files for it.

 However, WP still does.

 This can - on an average WP install - easily result in some 40+ file
 system calls to check for the existence of `en_US` translation files.
 These call are unnecessary and slow down the page load.

 The included patch would solve this by bowing out early if the `locale` is
 `en_US`.

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


More information about the wp-trac mailing list