mirror of
git://develop.git.wordpress.org/
synced 2025-02-27 18:13:00 +01:00
Unset filter when inserting/updating posts. For trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@18367 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2258beaf3c
commit
acc022ea36
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user