[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
Fri Dec 14 10:38:15 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.2
Component:  I18N                                 |     Version:  5.0
 Severity:  normal                               |  Resolution:
 Keywords:  has-screenshots needs-unit-tests     |     Focuses:
  has-patch                                      |
-------------------------------------------------+-------------------------

Comment (by akirk):

 Building the proper relative path also fails when the assets are served
 from another server, like for example for
 [https://jetpack.com/features/design/content-delivery-network/ Jetpack
 CDN]. The Javascript URL might be something like
 `https://c0.wp.com/c/5.0.1/wp-includes/js/dist/edit-post.min.js`.

 I've submitted a 45528.3.patch the patch to accommodate for this case.

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


More information about the wp-trac mailing list