Skip to content

Commit

Permalink
Unset filter when inserting/updating posts. For trunk
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.automattic.com/wordpress/trunk@18367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
  • Loading branch information
ryan committed Jun 28, 2011
1 parent db253a3 commit 7a466b9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wp-includes/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7a466b9

Please sign in to comment.