Unset filter when inserting/updating posts. For trunk

git-svn-id: http://svn.automattic.com/wordpress/trunk@18367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-06-28 21:46:18 +00:00
parent db253a3fe7
commit 7a466b9ed9
1 changed files with 5 additions and 0 deletions

View File

@ -2430,6 +2430,9 @@ function wp_insert_post($postarr, $wp_error = false) {
'post_content' => '', 'post_title' => '');
$postarr = wp_parse_args($postarr, $defaults);
unset( $postarr[ 'filter' ] );
$postarr = sanitize_post($postarr, 'db');
// export array as variables
@ -3611,6 +3614,8 @@ function wp_insert_attachment($object, $file = false, $parent = 0) {
if ( !empty($parent) )
$object['post_parent'] = $parent;
unset( $object[ 'filter' ] );
$object = sanitize_post($object, 'db');
// export array as variables