#20058 closed defect (bug) (duplicate)

XMLRPC: Post excerpt should only be updated if one was provided in metaWeblog.editPost

Reported by: mrroundhill Owned by:
Priority: normal Milestone:
Component: XML-RPC Version: 3.3.1
Severity: normal Keywords: has-patch mobile close
Cc:

Description

I received a bug report for the WPAndroid app that said the post excerpt would be deleted when a user edited an existing post on their blog. The app doesn't deal with the post excerpt at all so it doesn't pass anything back in the mt_excerpt field in the metaWeblog.editPost call.

I'm going to fix this by passing back the mt_excerpt from the app, but I think it would be best for the API to only update the excerpt if one was provided. I've created a patch that does this.

Attachments (1)

class-wp-xmlrpc-server.php.diff (621 bytes) - added by mrroundhill 15 months ago.

Download all attachments as: .zip

Change History (6)

Assuming the API doesn't already behave this way, I agree this is a good fix, and is consistent with the way other omitted values behave in the API. In general: Omitted? Leave the value alone. Value (even if blank)? Overwrite.

This should be fixed by [20322] can you test?

Seems to be a duplicate of #20321, which outlines and fixes the larger issue.

  • Keywords close added

Can't this be closed since the exact code was in [20322]?

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.