[wp-trac] [WordPress Trac] #32273: TinyMCE results in lost data if post save fails and back button is clicked

WordPress Trac noreply at wordpress.org
Mon Jul 1 12:58:04 UTC 2019


#32273: TinyMCE results in lost data if post save fails and back button is clicked
-------------------------------+-------------------------
 Reporter:  archon810          |       Owner:  (none)
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:
Component:  TinyMCE            |     Version:  4.2.1
 Severity:  normal             |  Resolution:  worksforme
 Keywords:  reporter-feedback  |     Focuses:  javascript
-------------------------------+-------------------------
Changes (by azaozz):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 Still thinking that calling `wp_die()` during saving of a post is not the
 best way to do things, perhaps only for security/permissions violations.

 In case the edited post_content has to be rejected, it would be best to
 redirect and load post_content as submitted by the user. Even perhaps with
 highlighted "errors" that prevented it from being saved.

 Closing as worksforme for now. Feel free to reopen if we can improve
 handling of similar cases on the old Edit Post screen, but keep in mind
 this is handled differently in the block editor.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/32273#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list