[wp-trac] [WordPress Trac] #60266: get_the_modified_date function doesn't return the date for newly published posts
WordPress Trac
noreply at wordpress.org
Wed Jan 17 09:44:16 UTC 2024
#60266: get_the_modified_date function doesn't return the date for newly published
posts
--------------------------+------------------------------
Reporter: bugnumber9 | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version:
Severity: normal | Resolution: worksforme
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by bugnumber9):
Replying to [comment:1 benniledl]:
> Hey!
> Please double check if you are experiencing the same behavior on a clean
WordPress installation. I tried it with 6.4.2 and it works as you
described. It returns the value from the database even tho creation and
modification date are the same.
> Maybe a plugin is altering the behavior or do you have a different
WordPress version installed?
Thanks for pointing me in the right direction.
The issue is with Post Date block in block editor. I just confirmed that
the function works as expected in non-FSE themes.
False alarm, sorry. I'm going to open an issue in Gutenberg repo.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/60266#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list