Opened 13 years ago
Closed 13 years ago
#20058 closed defect (bug) (duplicate)
XMLRPC: Post excerpt should only be updated if one was provided in metaWeblog.editPost
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.3.1 |
Component: | XML-RPC | Keywords: | has-patch mobile close |
Focuses: | 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)
Change History (6)
Note: See
TracTickets for help on using
tickets.
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.