#4855 closed defect (bug) (fixed)
"Save and Continue Editing" is broken
Reported by: | Viper007Bond | Owned by: | |
---|---|---|---|
Milestone: | 2.3 | Priority: | highest omg bbq |
Severity: | blocker | Version: | 2.3 |
Component: | Administration | Keywords: | has-patch tested dev-reviewed commit |
Focuses: | Cc: |
Description
Go to the Write post screen and then click "Save and Continue Editing". You get redirected to post.php?action=edit&post=0
. Note the post ID.
Don't have time to find the problem and solution at the moment. If no one patches it up, I'll look into it later.
Attachments (2)
Change History (10)
#2
@
17 years ago
That's what I thought at first too, but that's occurring after the fact.
i.e. you click the button, it saves it / whatever, then redirects to post.php?action=edit&post=0
which in turn tries to find a post with the ID of 0
(which of course doesn't exist), so that error is spit out.
I'm pretty sure they are unrelated.
#4
@
17 years ago
BoltClock, that didn't fix it for me.
Viper007Bond, 2.2 has the same behavior. post.php?action=edit&post=0 when post title and content are empty.
#5
@
17 years ago
wp_insert_post() returns a 0 to wp_write_post() if the post has no content or title. Perhaps we need to check for this and return WP_Error.
#6
@
17 years ago
- Keywords tested dev-reviewed commit added; needs-testing removed
+1 to rboren's patch
Tested and works fine for me
PHP 5.2.4_pre200708051230-pl2-gentoo with Suhosin-Patch 0.9.6.2
Due to [5875] for #4737 ?