[wp-trac] [WordPress Trac] #30691: Removing a featured image does not remove the 'post_parent' value - reproducible
WordPress Trac
noreply at wordpress.org
Fri Dec 12 17:16:13 UTC 2014
#30691: Removing a featured image does not remove the 'post_parent' value -
reproducible
--------------------------+------------------------------
Reporter: juggledad | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.0.1
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by SergeyBiryukov):
Replying to [comment:3 juggledad]:
> So this begs the question, if an featured image is added while editing
the post and subsequently removed, is the image still a child of the post?
Technically yes, it's a different kind of relationship. It might be
confusing, but `post_parent` just means the image was initially uploaded
for this particular post (as opposed to uploading via Media Library
screen), and has nothing to do with setting or removing featured image.
See #6820 for the ability to reattach an image to another post. There's
also a [https://wordpress.org/plugins/unattach-and-re-attach-attachments/
plugin] for that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30691#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list