Bug in XML-RPC interface?
-
Hey guys,
before reporting this as a bug I want to make sure it actually is one.
When uploading a post via XML-RPC I have to upload the images first. I do so via
wp.uploadFile
.
Later I update the actual blogpost viawp.newPost
.WordPress is smart enough to look through all images in the markup and sets the correct
post_parent
in the database. But it forgets to make thepost_status
inherit.Getting more concrete, look in the file wp-includes/class-wp-xmlrpc-server.php and find the function
attach_uploads
. It sets thepost_parent
but doesn’t update thepost_status
.Because WordPress forgets about this you won’t be able to find the uploaded images in your media library. The images do count in the image count shown at the top, but you won’t get to see them in the actual file list.
In my opinion this is a bug that can be easily fixed.
What do you think?
- The topic ‘Bug in XML-RPC interface?’ is closed to new replies.