Fix typo in blogger_editPost(). Don't invoke content_save_pre since that is done by the insert/update functions. fixes #1777

git-svn-id: https://develop.svn.wordpress.org/trunk@2957 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-10-20 16:38:07 +00:00
parent d7605dd6ad
commit 7f5350d345
1 changed files with 3 additions and 9 deletions

View File

@ -379,9 +379,7 @@ class wp_xmlrpc_server extends IXR_Server {
$post_title = xmlrpc_getposttitle($content); $post_title = xmlrpc_getposttitle($content);
$post_category = xmlrpc_getpostcategory($content); $post_category = xmlrpc_getpostcategory($content);
$post_content = xmlrpc_removepostdata($content);
$content = xmlrpc_removepostdata($content);
$post_content = apply_filters( 'content_save_pre', $content );
$post_date = current_time('mysql'); $post_date = current_time('mysql');
$post_date_gmt = current_time('mysql', 1); $post_date_gmt = current_time('mysql', 1);
@ -410,7 +408,7 @@ class wp_xmlrpc_server extends IXR_Server {
$post_ID = $args[1]; $post_ID = $args[1];
$user_login = $args[2]; $user_login = $args[2];
$user_pass = $args[3]; $user_pass = $args[3];
$new_content = $args[4]; $content = $args[4];
$publish = $args[5]; $publish = $args[5];
if (!$this->login_pass_ok($user_login, $user_pass)) { if (!$this->login_pass_ok($user_login, $user_pass)) {
@ -431,13 +429,9 @@ class wp_xmlrpc_server extends IXR_Server {
extract($actual_post); extract($actual_post);
$content = $newcontent;
$post_title = xmlrpc_getposttitle($content); $post_title = xmlrpc_getposttitle($content);
$post_category = xmlrpc_getpostcategory($content); $post_category = xmlrpc_getpostcategory($content);
$post_content = xmlrpc_removepostdata($content);
$content = xmlrpc_removepostdata($content);
$post_content = apply_filters( 'content_save_pre', $content );
$postdata = compact('ID', 'post_content', 'post_title', 'post_category', 'post_status', 'post_excerpt'); $postdata = compact('ID', 'post_content', 'post_title', 'post_category', 'post_status', 'post_excerpt');