Commit 3e03a8e
committed
REST API: Prevent inaccessible attachments from being embedded in posts.
When an attachment is used by multiple posts, it could be included in `_embed` for a published post even if its `post_parent` is a draft.
This commit avoids embedding attachments that are not viewable in this context.
Props bor0.
Fixes #64183.
Built from https://develop.svn.wordpress.org/trunk@61996
git-svn-id: http://core.svn.wordpress.org/trunk@61278 1a063a9b-81f0-0310-95a4-ce76da25c4cd1 parent a25478d commit 3e03a8e
2 files changed
Lines changed: 2 additions & 2 deletions
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2294 | 2294 | | |
2295 | 2295 | | |
2296 | 2296 | | |
2297 | | - | |
| 2297 | + | |
2298 | 2298 | | |
2299 | 2299 | | |
2300 | 2300 | | |
| |||
| 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