Unset no_filter. Props xknown. fixes #4720

git-svn-id: http://svn.automattic.com/wordpress/branches/2.2@6018 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-09-03 16:28:19 +00:00
parent a48ea12857
commit c845b0a1d8
1 changed files with 4 additions and 0 deletions

View File

@ -105,6 +105,8 @@ function wp_write_post() {
$_POST['post_date'] = sprintf( "%04d-%02d-%02d %02d:%02d:%02d", $aa, $mm, $jj, $hh, $mn, $ss );
$_POST['post_date_gmt'] = get_gmt_from_date( $_POST['post_date'] );
}
unset($_POST['no_filter']);
// Create the post.
$post_ID = wp_insert_post( $_POST );
@ -283,6 +285,8 @@ function edit_post() {
delete_meta( $key );
}
unset($_POST['no_filter']);
add_meta( $post_ID );
wp_update_post( $_POST );