Commit f99957f
committed
Script Loader: Omit sourceURL from translation data when not printed.
The data returned from `WP_Scripts::print_translations()` when `$display` is `false` may be used in unpredictable ways that are incompatible with `sourceURL` comments. Omit the `sourceURL` comment in this case.
Developed in #10505.
Follow-up to [60719].
Props jonsurrell, ralucastn, westonruter, peterwilsoncc.
See #63887.
git-svn-id: https://develop.svn.wordpress.org/trunk@61223 602fd350-edb4-49c9-b593-d223f7449a821 parent 81e3dbe commit f99957f
File tree
2 files changed
+30
-4
lines changed- src/wp-includes
- tests/phpunit/tests/dependencies
2 files changed
+30
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
350 | 350 | | |
351 | 351 | | |
352 | 352 | | |
353 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
354 | 363 | | |
355 | 364 | | |
356 | 365 | | |
| |||
722 | 731 | | |
723 | 732 | | |
724 | 733 | | |
725 | | - | |
726 | | - | |
727 | 734 | | |
728 | 735 | | |
729 | 736 | | |
730 | 737 | | |
731 | 738 | | |
732 | 739 | | |
733 | | - | |
734 | 740 | | |
735 | 741 | | |
736 | 742 | | |
| 743 | + | |
| 744 | + | |
737 | 745 | | |
738 | 746 | | |
739 | 747 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4075 | 4075 | | |
4076 | 4076 | | |
4077 | 4077 | | |
| 4078 | + | |
| 4079 | + | |
| 4080 | + | |
| 4081 | + | |
| 4082 | + | |
| 4083 | + | |
| 4084 | + | |
| 4085 | + | |
| 4086 | + | |
| 4087 | + | |
| 4088 | + | |
| 4089 | + | |
| 4090 | + | |
| 4091 | + | |
| 4092 | + | |
| 4093 | + | |
| 4094 | + | |
| 4095 | + | |
4078 | 4096 | | |
0 commit comments