Commit Graph

9 Commits

Author SHA1 Message Date
Jan Jakes
d1be5887c2 Ensure Lodash doesn't override Undesrcore on "window._"
This is a better fix than the previous ones in JS, as it should cover all assets
that can use Lodash, and it reverts back to the WP Underscore instance.

[MAILPOET-5653]
2023-10-17 12:41:28 +02:00
Jan Jakes
9e825d9157 Keep entrypoint asset name as script name, remove unnecessary check
[MAILPOET-5118]
2023-10-04 15:05:38 +02:00
Jan Jakes
0411ed2c37 Enqueue Parsley translation strings in after "admin_vendor"
This is a better place and it corresponds to the current logic.

[MAILPOET-5118]
2023-10-04 15:05:38 +02:00
Jan Jakes
16c51717b7 Fix timing of "mailpoet_scripts_admin_before" actioon trigger
[MAILPOET-5118]
2023-10-04 15:05:38 +02:00
Jan Jakes
312f85efdd Enqueue all styles using WP native functions
[MAILPOET-5118]
2023-10-04 15:05:38 +02:00
Jan Jakes
420a9c41e0 Use WP logic to enqueue Parsley validation strings
[MAILPOET-5118]
2023-10-04 15:05:38 +02:00
Jan Jakes
ed76bbf3d6 Invoke "mailpoet_scripts_admin_before" from the asset controller
[MAILPOET-5118]
2023-10-04 15:05:38 +02:00
Jan Jakes
282f7b8414 Enqueue all admin scripts using WP native functions
[MAILPOET-5118]
2023-10-04 15:05:38 +02:00
Jan Jakes
480d9f1239 Extract admin pages assets setup out of form assets controller
[MAILPOET-5118]
2023-10-04 15:05:38 +02:00