[wp-trac] [WordPress Trac] #37027: Deletion of post with no title, content & excerpt

WordPress Trac noreply at wordpress.org
Sat Jun 4 13:20:34 UTC 2016


#37027: Deletion of post with no title, content & excerpt
----------------------------+------------------------------
 Reporter:  Ninos Ego       |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  4.5.2
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by Ninos Ego):

 Ok problem found. Post cannot be moved to trash because of the
 wp_insert_post() which is called in wp_trash_post():
 post.php -> wp_trash_post() -> wp_insert_post()

 The solution would be to always use the filter
 'wp_insert_post_empty_content', what does not make much sense in some
 scenarios. I think it would be better to implement a patch like attached.
 What's your opinion about that?

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


More information about the wp-trac mailing list