[wp-trac] [WordPress Trac] #23041: Images Don't Become Attached When Inserting a Gallery
WordPress Trac
noreply at wordpress.org
Tue Jul 12 18:57:15 UTC 2022
#23041: Images Don't Become Attached When Inserting a Gallery
--------------------------+-------------------------
Reporter: miqrogroove | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Gallery | Version: 3.5
Severity: normal | Resolution: maybelater
Keywords: has-patch | Focuses:
--------------------------+-------------------------
Changes (by desrosj):
* keywords: has-patch bulk-reopened => has-patch
* status: new => closed
* resolution: => maybelater
Comment:
I came across this one going through the list of tickets missing a
milestone.
I did some testing with the most recent version of WordPress (currently
6.0) and this is the current behavior related to unattached images:
Classic Editor active:
- Inserting an unattached image assigns the post as the attachment's
parent.
- Inserting unattached images into a gallery does not change the parent of
the attachments.
- Uploading an attachment to a post **does** assign the post as it's
parent.
Block Editor (no Classic Editor plugin)
- Inserting unattached image **does not** set the post as the attachment's
parent.
- Inserting unattached images into a gallery **does not** change the
parent of the attachments.
- Uploading an attachment to a post **does** assign the post as it's
parent.
I'm going to close this out as a `maybelater`. Since the block editor is
not changing the `post_parent` for unattached images when inserting into
an image block, this issue within galleries (when using the Classic
Editor) and gallery blocks makes the behavior consistent.
Tickets do not need to be open for conversation to continue. If someone
feels that the behavior of setting an attachment's `post_parent` to the
current post when inserting an unattached should be restored, the same can
be added for galleries, and there will likely need to be an accompanying
ticket in the [https://github.com/wordpress/gutenberg Gutenberg GitHub
repository].
--
Ticket URL: <https://core.trac.wordpress.org/ticket/23041#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list