[wp-trac] [WordPress Trac] #50565: Prevent attachment ID/image source mismatch when editing an image through the REST API

WordPress Trac noreply at wordpress.org
Mon Jul 6 06:28:10 UTC 2020


#50565: Prevent attachment ID/image source mismatch when editing an image through
the REST API
----------------------------------------+---------------------
 Reporter:  azaozz                      |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  5.5
Component:  REST API                    |     Version:  trunk
 Severity:  normal                      |  Resolution:
 Keywords:  has-patch needs-unit-tests  |     Focuses:
----------------------------------------+---------------------

Comment (by azaozz):

 In 50565.1.diff:
 - Add `format => uri`.
 - Fix the tests.

 Seems we'll have to create new attachment for every test, with image, meta
 and everything. Also need to add a test for mismatched attachment IDs.

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


More information about the wp-trac mailing list