﻿id,summary,reporter,owner,description,type,status,priority,milestone,component,version,severity,resolution,keywords,cc
22335,XML-RPC: wp.editPost changes post_status from 'inherit' to 'draft',DaEnno,ryan,"To send a blogpost via XML-RPC interface I take the following steps:

1. Upload all images via ''wp.uploadFile''.
2. Receive the IDs and URLs of the uploaded images and insert image markup into the blogpost.
3. Create the actual blogpost via ''wp.newPost''.

'''The Problem:''' the uploaded images will show up in the blogpost but can't be found in the media library.

This seems to appear due to a bug in the function ""attach_uploads"" in the file ''class-wp-xmlrpc-server.php''. The function sets the ''post_parent'' of all images to the ID of the actual blogpost. But it does '''not''' update the image's ""post_status"" from ""draft"" to ""inherit"".

The images are included when displaying the image count in the media library but they are not listed there.",enhancement,closed,normal,3.5,XML-RPC,3.4,normal,fixed,commit,
