[wp-trac] [WordPress Trac] #51289: Documentation issue: get_post_time is getting the time when published not when created
WordPress Trac
noreply at wordpress.org
Tue Feb 1 21:36:28 UTC 2022
#51289: Documentation issue: get_post_time is getting the time when published not
when created
-------------------------------------------------+-------------------------
Reporter: casiepa | Owner:
| SergeyBiryukov
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: Future
| Release
Component: Date/Time | Version:
Severity: normal | Resolution:
Keywords: has-patch good-first-bug needs- | Focuses: docs
refresh |
-------------------------------------------------+-------------------------
Comment (by azouamauriac):
I think this bug is deeper and more over a word issue. Since WordPress
assumes that 'publish date' = 'write date' and save both data in
'post_modified' attribute. I don't think that way to see things is really
right. A post can write without published; so both dates should be handled
by different properties.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51289#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list