[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 00:02:19 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


Comment:

 In 50565.diff:
 - Require the edited image src when editing an image through the API.
 - Use `wp_image_file_matches_image_meta()` to check if the attachment ID
 matches the image.

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


More information about the wp-trac mailing list