From 3f4f1506327261829d96bdaafde851a20906c3d5 Mon Sep 17 00:00:00 2001 From: josephscott Date: Mon, 18 Apr 2011 16:32:26 +0000 Subject: [PATCH] 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 --- wp-includes/class-wp-xmlrpc-server.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 5fd1057bdb..3e12e54d6f 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -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; } } -?> \ No newline at end of file +?>