[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:18:40 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 herregroen):

 Updated the patch with @tmatsuur's suggestion which should work. Also
 added a `trailingslashit` to the site url path comparison which should
 should solve comment:3 I believe.

 Works on my local setup with WP in a subdirectory but I think there's a
 difference with how it's set up for @fierevere. If anyone could try out
 this patch that would be awesome.

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


More information about the wp-trac mailing list