[wp-trac] [WordPress Trac] #37027: Deletion of post with no title, content & excerpt
WordPress Trac
noreply at wordpress.org
Sat Jun 4 12:58:06 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 | Keywords:
Focuses: |
----------------------------+-----------------------------
It is not possible to delete (move to trash) posts via admin panel which
have no title, content and excerpt.
'''Steps to reproduce:'''
1. Create a post with following function
{{{
add_filter( 'wp_insert_post_empty_content', 'allow_empty_post' );
$this->post_id = wp_insert_post( array(
'post_type' => 'post'
) );
remove_filter( 'wp_insert_post_empty_content', 'allow_empty_post' );
function allow_empty_post( $boolean ) {
return false;
}
}}}
2. Go to admin panel (/wp-admin/edit.php)
3. Try to delete this draft (move to trash)
4. You get a "successfull" message but nothing happend
BTW: With the function wp_delete_post() all's working fine.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37027>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list