@plaudit/webpack-extensions 3.12.3 → 3.12.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [3.12.4] - 2026-07-07
|
|
9
|
+
### Fixed
|
|
10
|
+
- The output missing a blank line after the global hooks
|
|
11
|
+
|
|
8
12
|
## [3.12.3] - 2026-07-07
|
|
9
13
|
### Fixed
|
|
10
14
|
- `admin` hooks that were not restricted to an individual page being restricted to only being emitted on non-existent pages
|
|
@@ -204,8 +204,11 @@ class PlainEntrypointsConfigFileGeneratorPlugin extends AbstractBiPhasicGroupAnd
|
|
|
204
204
|
const hook_name_var = new expressions_1.Var("hook_name", "?string");
|
|
205
205
|
writer.action(action, writer => {
|
|
206
206
|
additional_action_code?.before?.(writer);
|
|
207
|
-
|
|
208
|
-
|
|
207
|
+
if (hookNamedHandleLists.global) {
|
|
208
|
+
for (const handle of hookNamedHandleLists.global) {
|
|
209
|
+
writer.call(`wp_enqueue_${handle.type}`, [handle.handle]);
|
|
210
|
+
}
|
|
211
|
+
writer.linebreak();
|
|
209
212
|
}
|
|
210
213
|
for (const [hook_name, handles] of hookNamedHandleLists.named) {
|
|
211
214
|
writer.if(expressions_1.Op.binary(hook_name_var, " === ", hook_name));
|