Use WP logic to enqueue Parsley validation strings
[MAILPOET-5118]
This commit is contained in:
@@ -75,6 +75,9 @@ class AssetsController {
|
||||
true
|
||||
);
|
||||
$this->wp->wpSetScriptTranslations($name, 'mailpoet');
|
||||
|
||||
// append Parsley validation string translations
|
||||
$this->wp->wpAddInlineScript($name, $this->renderer->render('parsley-translations.html'));
|
||||
}
|
||||
|
||||
private function registerAdminDeps(): void {
|
||||
|
Reference in New Issue
Block a user