Prevent current author from claiming authorship of posts from other authors when editing via desktop client. Props Erik Barzeski. fixes #4315 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@5511 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
523a3724bb
commit
d2d79b9a58
@ -1150,7 +1150,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
$menu_order = $content_struct["wp_page_order"];
|
||||
}
|
||||
|
||||
$post_author = $user->ID;
|
||||
$post_author = $postdata["post_author"];
|
||||
|
||||
// Only set the post_author if one is set.
|
||||
if(
|
||||
|
Loading…
Reference in New Issue
Block a user