Commit 7622f11
authored
Add authorization check on destination post during content import (#668)
The content-import filter already verified the requesting user could
read the source post and validated the nonce, but never checked
whether they were allowed to edit the destination post before writing
imported content into it. Add an explicit current_user_can( 'edit_post',
$dest_post_id ) check alongside the existing checks.1 parent 06e4a43 commit 7622f11
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
136 | 140 | | |
137 | 141 | | |
138 | 142 | | |
| |||
0 commit comments