Commit 1c77555
committed
Prevent adding sourceURL to translation script if not printed
It's unclear how the script tag contents may be used by extenders. Avoid
printing the sourceURL if the contents are not immediately printed.
See
https://github.com/WordPress/wordpress-develop/blob/81e3dbeba63838a13b137c6308548e35a616f3b6/src/wp-includes/script-loader.php#L3015.1 parent 81e3dbe commit 1c77555
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
722 | 722 | | |
723 | 723 | | |
724 | 724 | | |
725 | | - | |
726 | | - | |
727 | 725 | | |
728 | 726 | | |
729 | 727 | | |
730 | 728 | | |
731 | 729 | | |
732 | 730 | | |
733 | | - | |
734 | 731 | | |
735 | 732 | | |
736 | 733 | | |
| 734 | + | |
| 735 | + | |
737 | 736 | | |
738 | 737 | | |
739 | 738 | | |
| |||
0 commit comments