Don't run content_save_pre filter twice for XMLRPC posts. Props redsweater. fixes #10802
git-svn-id: https://develop.svn.wordpress.org/trunk@11942 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
851b83207c
commit
9a94997c21
@ -2092,7 +2092,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$post_title = $content_struct['title'];
|
$post_title = $content_struct['title'];
|
||||||
$post_content = apply_filters( 'content_save_pre', $content_struct['description'] );
|
$post_content = $content_struct['description'];
|
||||||
|
|
||||||
$post_status = $publish ? 'publish' : 'draft';
|
$post_status = $publish ? 'publish' : 'draft';
|
||||||
|
|
||||||
@ -2459,7 +2459,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$post_title = $content_struct['title'];
|
$post_title = $content_struct['title'];
|
||||||
$post_content = apply_filters( 'content_save_pre', $content_struct['description'] );
|
$post_content = $content_struct['description'];
|
||||||
$catnames = $content_struct['categories'];
|
$catnames = $content_struct['categories'];
|
||||||
|
|
||||||
$post_category = array();
|
$post_category = array();
|
||||||
|
Loading…
Reference in New Issue
Block a user