[wp-trac] [WordPress Trac] #40861: REST API saves attachments with absolute path for `_wp_attached_file` on Windows platforms

WordPress Trac noreply at wordpress.org
Fri Mar 2 11:03:12 UTC 2018


#40861: REST API saves attachments with absolute path for `_wp_attached_file` on
Windows platforms
----------------------------------------+------------------
 Reporter:  redcastor                   |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  5.0
Component:  REST API                    |     Version:  4.6
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+------------------

Comment (by bobbingwide):

 The second patch makes it a lot more obvious that it's difficult to use
 the REST API to create an attachment which is actually attached to
 something! Is that one of the reasons for the 'rest_insert_attachment'
 action hook?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/40861#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list