Commit 80156af
committed
Editor: Add
Adds an `auth_callback` to the `_wp_note_status` comment meta so that only users with the `edit_comment` capability can update this meta field via the REST API.
This is necessary to ensure that users can properly resolve or reopen Notes.
Props wildworks, adamsilverstein, westonruter, mamaduka, desrosj.
Fixes #64153.
git-svn-id: https://develop.svn.wordpress.org/trunk@61089 602fd350-edb4-49c9-b593-d223f7449a82auth_callback to _wp_note_status comment meta.1 parent b482707 commit 80156af
File tree
3 files changed
+11
-1
lines changed- src/wp-includes
- tests/phpunit/tests/rest-api
3 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4129 | 4129 | | |
4130 | 4130 | | |
4131 | 4131 | | |
| 4132 | + | |
| 4133 | + | |
| 4134 | + | |
4132 | 4135 | | |
4133 | 4136 | | |
4134 | 4137 | | |
4135 | | - | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| 173 | + | |
| 174 | + | |
173 | 175 | | |
174 | 176 | | |
175 | 177 | | |
| |||
3888 | 3890 | | |
3889 | 3891 | | |
3890 | 3892 | | |
| 3893 | + | |
| 3894 | + | |
| 3895 | + | |
| 3896 | + | |
| 3897 | + | |
3891 | 3898 | | |
3892 | 3899 | | |
3893 | 3900 | | |
| |||
0 commit comments