Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post Date block: Display last modified date shows date earlier than published date #48467

Closed
jenxi opened this issue Feb 27, 2023 · 2 comments
Closed
Assignees
Labels
[Block] Post Date Affects the Post Date Block

Comments

@jenxi
Copy link

jenxi commented Feb 27, 2023

Description

When using the Display last modified date option, on a new scheduled post, the modified date shows the time of scheduling while the published date shows the scheduled date.

So the modified date shows up as a few days earlier than the published date.

I would expect the modified to now appear if it is earlier than the published date.

Step-by-step reproduction instructions

  1. Add the Post Date block
  2. Enable Display last modified date
  3. Schedule a post

Screenshots, screen recording, code snippet

No response

Environment info

  • WP 6.1.1
  • Default blocks, Gutenberg not installed
  • Wabi theme

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@carolinan carolinan self-assigned this Feb 27, 2023
@carolinan
Copy link
Contributor

Hi!
For the front, this should be solved by #46839. It only displays the modified date if it is later than the publishing date.

What do you think should show for the modified date in the editor in this case? Open for suggestions.

@carolinan carolinan added the [Block] Post Date Affects the Post Date Block label Feb 27, 2023
@jenxi
Copy link
Author

jenxi commented Feb 27, 2023

Thanks! The editor is pretty self-explanatory as it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Post Date Affects the Post Date Block
Projects
None yet
Development

No branches or pull requests

2 participants