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:
Ryan Boren 2009-09-17 16:59:33 +00:00
parent 851b83207c
commit 9a94997c21
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();