Make WordPress Core

Opened 19 months ago

Last modified 19 months ago

#45528 closed defect (bug)

Editor JSON translations fail to load if WP_CONTENT_DIR been redefined — at Initial Version

Reported by: fierevere Owned by:
Milestone: 5.0.2 Priority: normal
Severity: normal Version: 5.0
Component: I18N Keywords: has-screenshots has-patch has-unit-tests fixed-5.0
Focuses: Cc:


Translation for Gutenberg editor screen is partial when WP_CONTENT_DIR been redefined. JSON translations are present in WP_CONTENT_DIR/languages but are not used.

Steps to reproduce (fresh WP install):

  1. install localized wordpress in subfolder ( http://localhost:8080/wordpress in my case )
  2. move installation to root of domain

create index.php, redefine siteurl

  1. define new constants

define( 'WP_CONTENT_DIR', '/siteroot/wp/wp-content' );
define( 'WP_CONTENT_URL', 'http://localhost:8080/wp-content' );
define( 'WP_PLUGIN_DIR', '/siteroot/wp/wp-content/plugins' );
define( 'WP_PLUGIN_URL', 'http://localhost:8080/wp-content/plugins' );

  1. ensure everything is working. (It is!)

Try to load editor, (new post/page) - localization is broken.

Expected: geditor-good.jpg
Got: geditor-bad.jpg

Change History (2)

19 months ago

Expected (translated) editor screen

19 months ago

Broken translation

Note: See TracTickets for help on using tickets.