Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Asset CDN: Fix json translation loading (#10982)
When the static asset CDN of Jetpack is loaded, the translations for Gutenberg don'tt load properly because the filename is generated for a wrong path. Also fixes Automattic/wp-calypso#29309 This has been extensively discussed in https://core.trac.wordpress.org/ticket/45528 #### Changes proposed in this Pull Request: * This implements the filter that has been introduced into Core. #### Testing instructions: Prequisit: WordPress 5.0.2(alpha) or trunk 1. Set your WordPress to another language than English. 2. Activate Jetpack Static Asset CDN. 3. Potentially add a filter to your WordPress if it's running trunk (see #10102) 4. Create a new post to open Gutenberg and observe broken translations. 5. Activate the patch: Translations should now load after a reload. #### Proposed changelog entry for your changes: * Fixes loading of the Block Editor UI translations when Static Asset CDN is used (requires WordPress 5.0.2)
- Loading branch information