[wp-trac] [WordPress Trac] #4416: Save and Continue Editing with blank title/body gets to bad state

WordPress Trac wp-trac at lists.automattic.com
Wed Jun 6 14:32:13 GMT 2007


#4416: Save and Continue Editing with blank title/body gets to bad state
----------------------------+-----------------------------------------------
 Reporter:  jhodgdon        |       Owner:  anonymous  
     Type:  defect          |      Status:  new        
 Priority:  normal          |   Milestone:  2.3 (trunk)
Component:  Administration  |     Version:  2.2        
 Severity:  normal          |    Keywords:  save, post 
----------------------------+-----------------------------------------------
 Log into your WordPress admin panel.

 Click "Write" to create a new post. It does not matter if you are using
 the rich text editor or plain editor.

 Click "Save and Continue Editing", without entering a title or body for
 your post. (For instance, someone might check a category or enter some
 other metadata and click Save and Continue Editing; but to reproduce this
 bug, you can just immediately click Save and Continue Editing)

 You will be redirected to a page with the following URL, relative to your
 blog dir:

     wp-admin/post.php?action=edit&post=0

 You will see a blank post editing screen, except that any edits you might
 have made in post metadata, categories, etc., and your usual post defaults
 (comment/trackback preferences), are all lost.

 I think the correct behavior should be (assuming we don't want to save a
 post with no title/content) to open up the default post again (as if user
 just clicked on Write), and to warn the user that the post was empty and
 not saved, up at the top of the screen in one of those handy-dandy fading
 message bars.

 I originally found this bug on a site running 2.1.x. I then verified it is
 still there in 2.2, and also in [5655], on a fresh install from scratch
 with no plugins running.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4416>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list