diff --git a/fluxc/src/main/java/org/wordpress/android/fluxc/network/xmlrpc/post/PostXMLRPCClient.java b/fluxc/src/main/java/org/wordpress/android/fluxc/network/xmlrpc/post/PostXMLRPCClient.java index 48cfc7d4cb..9bb35867d7 100644 --- a/fluxc/src/main/java/org/wordpress/android/fluxc/network/xmlrpc/post/PostXMLRPCClient.java +++ b/fluxc/src/main/java/org/wordpress/android/fluxc/network/xmlrpc/post/PostXMLRPCClient.java @@ -454,6 +454,7 @@ private static PostModel postResponseObjectToPostModel(@NonNull Map postObject, post.setCustomFields(jsonCustomFieldsArray.toString()); post.setExcerpt(MapUtils.getMapStr(postMap, "post_excerpt")); + post.setSlug(MapUtils.getMapStr(postMap, "post_name")); post.setPassword(MapUtils.getMapStr(postMap, "post_password")); post.setStatus(MapUtils.getMapStr(postMap, "post_status")); @@ -562,6 +563,7 @@ private static Map postModelToContentStruct(PostModel post) { } contentStruct.put("post_excerpt", post.getExcerpt()); + contentStruct.put("post_name", post.getSlug()); contentStruct.put("post_status", post.getStatus()); // Geolocation