mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
Don't reset the post slug on XML-RPC calls.
Fixes #12947 props cfinke, nprasath002 git-svn-id: https://develop.svn.wordpress.org/trunk@17648 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user