Don't run content_save_pre filter twice for XMLRPC posts. Props redsweater. fixes #10802
git-svn-id: http://svn.automattic.com/wordpress/trunk@11942 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
ae21304492
commit
eb5ed671ac
|
@ -2092,7 +2092,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
}
|
||||
|
||||
$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';
|
||||
|
||||
|
@ -2459,7 +2459,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
}
|
||||
|
||||
$post_title = $content_struct['title'];
|
||||
$post_content = apply_filters( 'content_save_pre', $content_struct['description'] );
|
||||
$post_content = $content_struct['description'];
|
||||
$catnames = $content_struct['categories'];
|
||||
|
||||
$post_category = array();
|
||||
|
|
Loading…
Reference in New Issue