Commit 00299e6
Plugins: Ensure proper flags are used with json_encode() (#46117)
This is a best-effort application of proper flags for `json_encode()`
and `wp_json_encode()`.
It also includes some cleanup of PHP 5.2 compatibility
(`JSON.parse(decodeURIComponent())`), which was a workaround for when
the flags we now use did not exist.
Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/19936177306
Upstream-Ref: Automattic/jetpack@389e3851 parent 60a03bd commit 00299e6
3 files changed
+8
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
778 | 778 | | |
779 | 779 | | |
780 | 780 | | |
781 | | - | |
| 781 | + | |
782 | 782 | | |
783 | | - | |
| 783 | + | |
784 | 784 | | |
785 | 785 | | |
786 | 786 | | |
| |||
2947 | 2947 | | |
2948 | 2948 | | |
2949 | 2949 | | |
2950 | | - | |
| 2950 | + | |
2951 | 2951 | | |
2952 | 2952 | | |
2953 | 2953 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3383 | 3383 | | |
3384 | 3384 | | |
3385 | 3385 | | |
3386 | | - | |
| 3386 | + | |
3387 | 3387 | | |
3388 | 3388 | | |
3389 | 3389 | | |
| |||
3403 | 3403 | | |
3404 | 3404 | | |
3405 | 3405 | | |
3406 | | - | |
| 3406 | + | |
3407 | 3407 | | |
3408 | 3408 | | |
3409 | 3409 | | |
| |||
0 commit comments