Don't reset the post slug on XML-RPC calls.

Fixes #12947 props cfinke, nprasath002


git-svn-id: http://svn.automattic.com/wordpress/trunk@17648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
josephscott 2011-04-18 16:32:26 +00:00
parent 0f7cac9f64
commit 3f4f150632
1 changed files with 2 additions and 1 deletions

View File

@ -2540,6 +2540,7 @@ class wp_xmlrpc_server extends IXR_Server {
// Let WordPress manage slug if none was provided.
$post_name = "";
$post_name = $postdata['post_name'];
if ( isset($content_struct["wp_slug"]) )
$post_name = $content_struct["wp_slug"];
@ -3601,4 +3602,4 @@ class wp_xmlrpc_server extends IXR_Server {
return $pingbacks;
}
}
?>
?>