Opened 22 months ago
Closed 20 months ago
#18235 closed task (blessed) (fixed)
Clean up remnants from having negative Post_IDs
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Priority: | normal | Milestone: | 3.3 |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | has-patch needs-testing |
| Cc: | ehitter@… |
Description
We switched to creating new post and having "real" post ID as soon as the user loads the Add New Post screen quite long time ago.
However there is still some code expecting negative post IDs and dealing with attachments added before a draft was saved. Seems it's time to remove it.
Attachments (3)
Change History (11)
If the code is redundant it should be removed, rather than having comments around it.
Removed old code as indicated by azaozz, tested editor and QuickPress (JS and non-JS), fixed internal references to wp_write_post.
comment:6
markjaquith — 20 months ago
- Owner set to azaozz
- Status changed from new to reviewing
Refreshed the patch. Basic testing only. azaozz, can you take this one, since you were the one to mark up the areas in the first place?
comment:7
markjaquith — 20 months ago
- Type changed from enhancement to task (blessed)
Not an enhancement.

Marked the places with old and redundant code