Opened 7 years ago
Closed 8 months ago
#48113 closed defect (bug) (fixed)
Update hard coded list of floating dates to use new date_floating post status arg
| Reported by: | TimothyBlynJacobs | Owned by: | TimothyBlynJacobs |
|---|---|---|---|
| Priority: | normal | Milestone: | 5.3 |
| Component: | General | Version: | 5.3 |
| Severity: | normal | Keywords: | has-patch has-unit-tests |
| Cc: | Focuses: |
Description
#39953 added a date_floating post status argument that clients can use to determine whether the post status is floating instead of relying on a hardcoded list.
We also need to update that hardcoded list in wp_insert_post() so that the post_date_gmt can be set to 0000-00-00 00:00:00 in that case as well.
Attachments (2)
Change History (7)
#4
@
11 months ago
- Resolution fixed
- Status closed → reopened
@TimothyBlynJacobs
I was reviewing other piece of code and I happened to stumble with this of mere chance.
I'm thinking if this [50012] is not being affected by the same issue as presented in this patch, at first glance it feels the exact same scenario, maybe I'm wrong.
Can you give it a check?
I'm reopening this for review but I have not dug on the topic, feel free to close it if its not related.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Added a patch. Currently there is one expected unit test failure,
test_create_post_as_contributor. That should be fixed when thependingpost status is marked asdate_floating.