Skip to content

Commit 7f5350d

Browse files
committed
Fix typo in blogger_editPost(). Don't invoke content_save_pre since that is done by the insert/update functions. fixes WordPress#1777
git-svn-id: https://develop.svn.wordpress.org/trunk@2957 602fd350-edb4-49c9-b593-d223f7449a82
1 parent d7605dd commit 7f5350d

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

xmlrpc.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,7 @@ function blogger_newPost($args) {
379379

380380
$post_title = xmlrpc_getposttitle($content);
381381
$post_category = xmlrpc_getpostcategory($content);
382-
383-
$content = xmlrpc_removepostdata($content);
384-
$post_content = apply_filters( 'content_save_pre', $content );
382+
$post_content = xmlrpc_removepostdata($content);
385383

386384
$post_date = current_time('mysql');
387385
$post_date_gmt = current_time('mysql', 1);
@@ -410,7 +408,7 @@ function blogger_editPost($args) {
410408
$post_ID = $args[1];
411409
$user_login = $args[2];
412410
$user_pass = $args[3];
413-
$new_content = $args[4];
411+
$content = $args[4];
414412
$publish = $args[5];
415413

416414
if (!$this->login_pass_ok($user_login, $user_pass)) {
@@ -431,13 +429,9 @@ function blogger_editPost($args) {
431429

432430
extract($actual_post);
433431

434-
$content = $newcontent;
435-
436432
$post_title = xmlrpc_getposttitle($content);
437433
$post_category = xmlrpc_getpostcategory($content);
438-
439-
$content = xmlrpc_removepostdata($content);
440-
$post_content = apply_filters( 'content_save_pre', $content );
434+
$post_content = xmlrpc_removepostdata($content);
441435

442436
$postdata = compact('ID', 'post_content', 'post_title', 'post_category', 'post_status', 'post_excerpt');
443437

0 commit comments

Comments
 (0)