[wp-trac] [WordPress Trac] #28253: Cannot delete published post
WordPress Trac
noreply at wordpress.org
Thu May 15 07:07:44 UTC 2014
#28253: Cannot delete published post
-----------------------------------+-----------------------------
Reporter: Parthiban Sagittarius | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Posts, Post Types | Version: 3.9.1
Severity: normal | Keywords:
Focuses: |
-----------------------------------+-----------------------------
Hi, I cannot delete the post publish when I programmably insert post into
wordpress. Using this part of code:
$post_id = wp_insert_post(
array(
'comment_status' => 'closed',
'ping_status' => 'closed',
'post_status' => 'publish',
'post_type' => 'post',
'post_title' => $posttitle,
'post_content' => $postcontent,
)
);
when there is no value assign to $posttitle and postcontent, wordpress
still create a post without any title and content which I can't delete at
all.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28253>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list