Opened 9 years ago
Closed 4 months ago
#40585 closed defect (bug) (worksforme)
'Update' vs 'Schedule'
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Priority: | normal | |
| Severity: | normal | Version: | |
| Component: | Posts, Post Types | Keywords: | has-patch |
| Focuses: | Cc: |
Description
Hi, today i work with WordPress and i noticed a problem. My timeline event is:
1) I have an article "X" published of the 26 april at 20.00.
2) Today, 27 april at 18.02 i start the edit the article
3) At 18.15 finish edit article and modified date of article in pubblication in 27 april at 18.15
4) Now i don't look button "Update" but i look button "Planning".
I have feeling that WordPress don't check date in this moment (18.15) but check date open edit article (18.02).
The article is pubblished in all cases but theoretically the article is deleter on the google serp for some minutes.
Sorry for my english :)
Attachments (1)
Change History (9)
#6
@
9 years ago
- Keywords has-patch added
- Milestone set to Awaiting Review
- Resolution invalid deleted
- Status changed from closed to reopened
Reopening as per #40693.
#7
@
9 years ago
- Keywords needs-testing added
The patch is by micheleconversano, just so we don't forget to give props if legit.
#8
@
4 months ago
- Keywords needs-testing removed
- Milestone Awaiting Review deleted
- Resolution set to worksforme
- Status changed from reopened to closed
Reproduction Report
Description
❌ This report can't validates that the issue can be reproduced.
Environment
- WordPress: 6.9-alpha-60093-src
- PHP: 8.2.29
- Server: nginx/1.29.1
- Database: mysqli (Server: 8.4.6 / Client: mysqlnd 8.2.29)
- Browser: Chrome 139.0.0.0
- OS: Windows 10/11
- Theme: Twenty Twenty 2.9
- MU Plugins: None activated
- Plugins:
- Test Reports 1.2.0
- User Switching 1.10.0
Testing Instructions
- Trying to reproduce the steps in OP
- Create a post in the past, say yesterday. Publish it.
- Edit the post in the past.
- Wait one or two minutes
- Check for title of the save button
- 👌 The button is "Update"
Actual Results
- ❌ Issue is not happening
Additional Notes
- I can't really reproduce the instructions. Checking at the provided patch, I'm not even sure what to expect
current_time without parameters gets:
$datetime = new DateTime( 'now', wp_timezone() );
- Revisions are set at the right time
- The comparison is being done between
timewhich returns the GMT current time, and thepost_date_gmtwhich is the exact time in GMT. So both should patch.current_timewould only make sense if we compared withpost_date - In conclusion, I'm not sure if the reporter was doing something wrong, but considering that is not reproducible, and nothing has moved for 8 years, its time to close this as
worksforme
I'm sorry but this is not a bug report for issues with WordPress core
You can post asking for help debugging the situation in https://wordpress.org/support/
If you don't change the time/date stamp for WordPress, then when you publish a post it will be 'now' even if you save it as pending.
If you DO edit the time or day, WordPress keeps that no matter what future changes you make.