Add a default for post_conten_filtered
git-svn-id: http://svn.automattic.com/wordpress/trunk@6951 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2c874f5189
commit
2f7d3a377e
|
@ -1121,7 +1121,7 @@ function wp_insert_post($postarr = array()) {
|
||||||
$defaults = array('post_status' => 'draft', 'post_type' => 'post', 'post_author' => $user_ID,
|
$defaults = array('post_status' => 'draft', 'post_type' => 'post', 'post_author' => $user_ID,
|
||||||
'ping_status' => get_option('default_ping_status'), 'post_parent' => 0,
|
'ping_status' => get_option('default_ping_status'), 'post_parent' => 0,
|
||||||
'menu_order' => 0, 'to_ping' => '', 'pinged' => '', 'post_password' => '',
|
'menu_order' => 0, 'to_ping' => '', 'pinged' => '', 'post_password' => '',
|
||||||
'guid' => '');
|
'guid' => '', 'post_content_filtered' => '');
|
||||||
|
|
||||||
$postarr = wp_parse_args($postarr, $defaults);
|
$postarr = wp_parse_args($postarr, $defaults);
|
||||||
$postarr = sanitize_post($postarr, 'db');
|
$postarr = sanitize_post($postarr, 'db');
|
||||||
|
|
Loading…
Reference in New Issue