[wp-trac] [WordPress Trac] #24916: XML-RPC "wp_author_id" ignored when changing author to self
WordPress Trac
noreply at wordpress.org
Thu Aug 1 20:44:02 UTC 2013
#24916: XML-RPC "wp_author_id" ignored when changing author to self
--------------------------+------------------------------
Reporter: redsweater | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: XML-RPC | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+------------------------------
Comment (by redsweater):
I confirmed that the existing behavior of wp_editPost is correct, because
the author field for the content is implied as the logged-in user, and
doesn't need to be mapped from the legacy MetaWeblog-style content struct
to the internal $post_data['post_author'] field.
The attached tests TestMetaWeblogChangeAuthorToSelf.patch not only confirm
my fix to mw_editPost but also add a test to wp_editPost to confirm the
existing correct functionality for the modern wp_editPost API.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24916#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list