Repository navigation
Commit bca7cea
committed
Interactivity API: Print
Encode `WP_Interactivity_Dangerous_HTML` tokens as `{"wpServerHtml":true}` on both paths of `wp_json_encode()`, so the client keeps the server-rendered content of a `data-wp-html` host wherever the reference reaches the token, including `data-wp-each` items read from context. Stop listing tokens reached through state in `derivedStateClosures`, which the marker makes unnecessary.
Follow-up to [64386].
Props santosguillamot.
Fixes #66246.
Built from https://develop.svn.wordpress.org/trunk@64501
git-svn-id: http://core.svn.wordpress.org/trunk@63651 1a063a9b-81f0-0310-95a4-ce76da25c4cddata-wp-html tokens as the wpServerHtml marker.1 parent 89639c4 commit bca7cea
3 files changed
Lines changed: 43 additions & 33 deletions
File tree
- wp-includes
- interactivity-api
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
706 | 706 | | |
707 | 707 | | |
708 | 708 | | |
709 | | - | |
710 | 709 | | |
711 | 710 | | |
712 | 711 | | |
| |||
732 | 731 | | |
733 | 732 | | |
734 | 733 | | |
735 | | - | |
736 | | - | |
737 | | - | |
| 734 | + | |
| 735 | + | |
738 | 736 | | |
739 | 737 | | |
740 | 738 | | |
| |||
783 | 781 | | |
784 | 782 | | |
785 | 783 | | |
786 | | - | |
787 | | - | |
| 784 | + | |
788 | 785 | | |
789 | 786 | | |
790 | 787 | | |
| |||
818 | 815 | | |
819 | 816 | | |
820 | 817 | | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
837 | | - | |
838 | | - | |
839 | | - | |
840 | | - | |
841 | | - | |
842 | | - | |
843 | 818 | | |
844 | 819 | | |
845 | 820 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
20 | 27 | | |
21 | 28 | | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
25 | | - | |
| 32 | + | |
26 | 33 | | |
27 | 34 | | |
28 | 35 | | |
| |||
73 | 80 | | |
74 | 81 | | |
75 | 82 | | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
76 | 111 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments