Repository navigation
Commit d9fcfe3
committed
Security: Backport the WordPress 7.1.5 security fixes to the 7.0 branch.
- Interactivity API: Escape the store namespace in `wp_interactivity_data_wp_context()`.
- REST API: Return no terms when a term search resolves to no taxonomy.
- REST API: Escape a hyphen in `wp_is_json_media_type()`.
- XML-RPC: Only return comments the user can read from `wp.getComments`.
- Meta API: Validate the `relation` argument in `WP_Meta_Query`.
- Query: Use prepared statements for more `WP_Query` clauses.
- Customize: Sanitize option settings with sanitize_option() when previewing.
- REST API: Only serve `rest_route` requests outside of the admin.
- XML-RPC: Process only one pingback per request.
- Comments: Check permissions before moving a comment to another post in the admin.
- Shortcodes: Prevent attribute escape sequences from forming HTML.
- Customize: Harden nav menu args handling.
- REST API: Harden comment author handling.
- Embeds: Return scripts from the oEmbed proxy only for embed handlers.
- REST API: Restrict post and template author assignment to site members.
Merges [65567], [65568], [65569], [65570], [65571], [65572], [65573], [65574], [65575], [65576], [65577], [65578], [65579], [65580], [65581], [65582] to the 7.0 branch.
Props jrf, gziolo, luisherranz, jonsurrell, lancewillett, xknown, dmsnell, jeremyfelt, batmoo, villanovachile, peterwilsoncc, westonruter, johnbillion, rfaile313, tyxla, jorbin, ramonopoly, adamsilverstein, ntsekouras, ehtis, andrewserong, jsnajdr, jeryj.
git-svn-id: https://develop.svn.wordpress.org/branches/7.0@65587 602fd350-edb4-49c9-b593-d223f7449a821 parent ec49f3c commit d9fcfe3
18 files changed
Lines changed: 592 additions & 79 deletions
File tree
- src
- wp-admin/includes
- wp-includes
- interactivity-api
- rest-api
- endpoints
- search
- tests/phpunit/tests/rest-api
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| 79 | + | |
| 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 | + | |
77 | 115 | | |
78 | 116 | | |
79 | 117 | | |
| |||
99 | 137 | | |
100 | 138 | | |
101 | 139 | | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
102 | 202 | | |
103 | 203 | | |
104 | 204 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5231 | 5231 | | |
5232 | 5232 | | |
5233 | 5233 | | |
5234 | | - | |
5235 | | - | |
| 5234 | + | |
| 5235 | + | |
| 5236 | + | |
5236 | 5237 | | |
5237 | 5238 | | |
5238 | 5239 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1527 | 1527 | | |
1528 | 1528 | | |
1529 | 1529 | | |
| 1530 | + | |
| 1531 | + | |
| 1532 | + | |
1530 | 1533 | | |
| 1534 | + | |
1531 | 1535 | | |
1532 | 1536 | | |
1533 | 1537 | | |
1534 | 1538 | | |
1535 | 1539 | | |
1536 | | - | |
| 1540 | + | |
1537 | 1541 | | |
1538 | 1542 | | |
1539 | 1543 | | |
| |||
0 commit comments