[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
Fri Jul 10 20:27:38 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     |     Focuses:
--------------------------+---------------------
Changes (by azaozz):

 * keywords:  has-patch needs-unit-tests => has-patch


Comment:

 In 50565.2.diff: Also add tests for when the attachment ID points to a
 different attachment (another image or a file), and the src points to a
 sub-size.

 This will have to be committed after updating the block editor that has
 https://github.com/WordPress/gutenberg/pull/23703 merged (as it adds a
 required attr to the REST request).

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


More information about the wp-trac mailing list