mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Add a default for post_conten_filtered
git-svn-id: https://develop.svn.wordpress.org/trunk@6951 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1121,7 +1121,7 @@ function wp_insert_post($postarr = array()) {
|
||||
$defaults = array('post_status' => 'draft', 'post_type' => 'post', 'post_author' => $user_ID,
|
||||
'ping_status' => get_option('default_ping_status'), 'post_parent' => 0,
|
||||
'menu_order' => 0, 'to_ping' => '', 'pinged' => '', 'post_password' => '',
|
||||
'guid' => '');
|
||||
'guid' => '', 'post_content_filtered' => '');
|
||||
|
||||
$postarr = wp_parse_args($postarr, $defaults);
|
||||
$postarr = sanitize_post($postarr, 'db');
|
||||
|
||||
Reference in New Issue
Block a user