Repository navigation
Commit 1e34129
committed
Script Loader: Disable script and style concatenation by default.
Flips the fallback in `script_concat_settings()` so an undefined
`CONCATENATE_SCRIPTS` resolves to `false` instead of `true`, making
`load-scripts.php` and `load-styles.php` opt-in. Sites that want the
previous behaviour can define the constant as `true`.
The concatenation code paths are unchanged, and the surrounding guard
already forces the global to `false` outside of `is_admin()` and
`login_init`, so only wp-admin and the login screen are affected.
See #57548.1 parent 2b0b3b8 commit 1e34129
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
2476 | 2476 | | |
2477 | 2477 | | |
2478 | 2478 | | |
2479 | | - | |
| 2479 | + | |
2480 | 2480 | | |
2481 | 2481 | | |
2482 | 2482 | | |
| |||
0 commit comments