[wp-trac] [WordPress Trac] #60891: When plugins have a custom directory, script translations don’t load correctly

WordPress Trac noreply at wordpress.org
Thu Apr 4 13:36:43 UTC 2024


#60891: When plugins have a custom directory, script translations don’t load
correctly
-------------------------------------------------+-------------------------
 Reporter:  coreymckrill                         |       Owner:  swissspidy
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.6
Component:  I18N                                 |     Version:  5.0
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests needs-      |     Focuses:
  testing has-testing-info                       |
-------------------------------------------------+-------------------------
Changes (by swissspidy):

 * owner:  (none) => swissspidy
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"57922" 57922]:
 {{{
 #!CommitTicketReference repository="" revision="57922"
 I18N: Always search for script translations in `wp-
 content/languages/plugins`.

 Previously, when `WP_PLUGIN_DIR` was set to something other than `wp-
 content/plugins`, e.g. `wp-content/mods`, `load_script_textdomain` was
 searching for script translations in `wp-content/languages/mods`. However,
 that is incorrect, as `WP_PLUGIN_DIR` does not affect where translations
 are stored. The location is always `wp-content/languages/plugins`.

 Props coreymckrill, swissspidy.
 Fixes #60891.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60891#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list