[wp-trac] [WordPress Trac] #62016: The .json files with theme translations are loaded only if they are present in the plugins path

WordPress Trac noreply at wordpress.org
Mon Sep 30 14:57:49 UTC 2024


#62016: The .json files with theme translations are loaded only if they are present
in the plugins path
-------------------------------------------------+-------------------------
 Reporter:  itapress                             |       Owner:  swissspidy
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.7
Component:  I18N                                 |     Version:  6.6
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch needs-testing has-unit-    |     Focuses:
  tests commit                                   |
-------------------------------------------------+-------------------------
Changes (by swissspidy):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59126" 59126]:
 {{{
 #!CommitTicketReference repository="" revision="59126"
 I18N: Fix script languages path for themes.

 Remove hardcoded path added in [57922] which ignored the fact that themes
 can also use script translations.
 They should not be affected even if plugins are installed outside the
 typical `wp-content/plugins` location.

 Props itapress, swissspidy.
 Fixes #62016.
 }}}

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


More information about the wp-trac mailing list