[wp-trac] [WordPress Trac] #34165: Incorrect file param in wp_handle_upload in class-wp-xmlrpc.php

WordPress Trac noreply at wordpress.org
Tue Oct 6 08:27:46 UTC 2015


#34165: Incorrect file param in wp_handle_upload in class-wp-xmlrpc.php
---------------------------+-----------------------------
 Reporter:  OceanicSurfer  |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  XML-RPC        |    Version:  4.3
 Severity:  normal         |   Keywords:
  Focuses:                 |
---------------------------+-----------------------------
 Hello,

 I am using the plugin imsanity which uses the wp_handle_upload hook to
 resize the upload.
 This doesn't work when uploading via xml-rpc.

 After digging deeper into this I found that the "file" param that is
 passed into this hook is inconsistent and changes depending on where this
 hook is triggered from. When uploading through the web interface the full
 file path is included in this param. When uploading via xml-rpc only the
 filename is given. When I modified class-wp-xmlrpc to be consistent with
 the web interface the plugin works.

 Thanks
 Michael

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34165>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list