Commit 7c9b76b
committed
Privacy: Correctly escape page title in
Update the escaping of the page title used in `get_the_privacy_policy_link()` to use a sub-set of permitted tags via `wp_kses()` rather than `esc_html()`.
WordPress permits the use of HTML tags within a page title so `esc_html()` isn't appropriate as it renders the HTML tags with html encoded characters.
Props shailu25, huzaifaalmesbah, mukesh27, hbhalodia, joedolson, masteradhoc, noruzzaman, ozgursar, sabernhardt, westonruter, wildworks.
Fixes #64748.
git-svn-id: https://develop.svn.wordpress.org/trunk@64092 602fd350-edb4-49c9-b593-d223f7449a82get_the_privacy_policy_link().1 parent 4b2afb9 commit 7c9b76b
2 files changed
Lines changed: 46 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4848 | 4848 | | |
4849 | 4849 | | |
4850 | 4850 | | |
4851 | | - | |
| 4851 | + | |
| 4852 | + | |
| 4853 | + | |
| 4854 | + | |
| 4855 | + | |
| 4856 | + | |
| 4857 | + | |
| 4858 | + | |
| 4859 | + | |
| 4860 | + | |
4852 | 4861 | | |
4853 | 4862 | | |
4854 | 4863 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 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 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
81 | 117 | | |
82 | 118 | | |
83 | 119 | | |
| |||
0 commit comments