Skip to content

WPML domain mapping and JS minification issue #145

@remyperona

Description

@remyperona

When WPML domain mapping is used, the JS minification doesn't work correctly for the JS files in the footer, and for a different language than the main one.

That is because when doing the minification, we remove the file at the start of the wp_footer hook, and reinsert them at the end, thus preventing some filters to run, especially script_loader_src which is used by WPML to replace the domain name.

The solution is to apply the script_loader_src filter before reinserting the files.

Metadata

Metadata

Assignees

Labels

priority: lowIssues that can waittype: bugIndicates an unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions