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:
ryan 2009-09-17 16:59:33 +00:00
parent ae21304492
commit eb5ed671ac
1 changed files with 2 additions and 2 deletions

View File

@ -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();