[wp-trac] [WordPress Trac] #45528: load_script_textdomain() doesn't load translations when WP installed in a subdirectory with custom content dir

WordPress Trac noreply at wordpress.org
Sat Dec 8 15:39:17 UTC 2018


#45528: load_script_textdomain() doesn't load translations when WP installed in a
subdirectory with custom content dir
-------------------------------------------------+-------------------------
 Reporter:  fierevere                            |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  5.0.1
Component:  I18N                                 |     Version:  5.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots needs-unit-tests     |     Focuses:
  needs-patch                                    |
-------------------------------------------------+-------------------------

Comment (by fierevere):

 45528.2.patch

 works for me with translating core editor.

 var_dump for $relative and $md5_filename

 {{{
 [Sat Dec  8 18:34:08 2018] string(36) "wp-includes/js/dist/api-
 fetch.min.js"

 [Sat Dec  8 18:34:08 2018] string(43) "ru_RU-
 1bba9045bb07c89671c88a3f328548e8.json"

 [Sat Dec  8 18:34:08 2018] string(33) "wp-includes/js/dist/blocks.min.js"

 [Sat Dec  8 18:34:08 2018] string(43) "ru_RU-
 1a0cd6a7128913b15c1a10dd68951869.json"

 [Sat Dec  8 18:34:08 2018] string(35) "wp-
 includes/js/dist/keycodes.min.js"

 [Sat Dec  8 18:34:08 2018] string(43) "ru_RU-
 a25d1cc7bf7ca0b4e114f6bea64943f4.json"

 [Sat Dec  8 18:34:08 2018] string(37) "wp-
 includes/js/dist/components.min.js"

 [Sat Dec  8 18:34:08 2018] string(43) "ru_RU-
 7f13c36c641b114bf18cd0bcc9ecc7e0.json"

 [Sat Dec  8 18:34:08 2018] string(30) "wp-includes/js/dist/nux.min.js"

 [Sat Dec  8 18:34:08 2018] string(43) "ru_RU-
 0ce75ad2f775d1cac9696967d484808c.json"

 [Sat Dec  8 18:34:08 2018] string(33) "wp-includes/js/dist/editor.min.js"

 [Sat Dec  8 18:34:08 2018] string(43) "ru_RU-
 bf0f094965d3d4a95b47babcb35fc136.json"

 [Sat Dec  8 18:34:08 2018] string(40) "wp-includes/js/dist/block-
 library.min.js"

 [Sat Dec  8 18:34:08 2018] string(43) "ru_RU-
 f8f49d9fc4a9cf7d78ec99285417bd9c.json"

 [Sat Dec  8 18:34:08 2018] string(36) "wp-includes/js/dist/edit-
 post.min.js"

 [Sat Dec  8 18:34:08 2018] string(43) "ru_RU-
 8860e58c20c6a2ab5876a0f07be43bd9.json"

 [Sat Dec  8 18:34:08 2018] string(41) "wp-includes/js/dist/format-
 library.min.js"

 [Sat Dec  8 18:34:08 2018] string(43) "ru_RU-
 68f2cec7514bf8563c723a4d675fcfe6.json"


 }}}

 tested this on a live site with more complex directory move set up.
 Works too.

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


More information about the wp-trac mailing list