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 +?>