[wp-trac] [WordPress Trac] #47726: Uploading new media to existing posts/pages backdates file location
WordPress Trac
noreply at wordpress.org
Wed Jul 17 23:27:25 UTC 2019
#47726: Uploading new media to existing posts/pages backdates file location
-------------------------+-----------------------------
Reporter: gaelgwp | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Media | Version: 2.7
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
-------------------------+-----------------------------
Changes (by pento):
* milestone: Awaiting Review => Future Release
Comment:
Thank you for this report, @gaelgwp!
The exception for pages is intentional, as described in [41964]: pages
will often be created when the site is first made, and then will be
updated at various intervals. For example, a company may have an "About
Us" page that lists their employees with photos, and is updated when
someone joins or leaves the company. So, the photo uses the upload date,
as that's more relevant than the date of when the page was created.
Going back to the original behaviour introduced in [9663], posts are a
much more time-based medium, so attachments to a post should have a
matching date.
Looking at [9663] in particular, this was introduced long before custom
post types existed, so didn't need to take this use case into account.
So, I think there's a reasonable case to match the page behaviour for CPTs
that live for a long time, where the publication date has little
relevance. Unfortunately, there currently isn't a flag for clearly
identifying these post types.
If someone wants to explore what such a flag would look like, we can look
at committing it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47726#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list