[wp-trac] [WordPress Trac] #55150: `_wp_attachment_backup_sizes` meta is not deleted when image is restored and IMAGE_EDIT_OVERWRITE is defined

WordPress Trac noreply at wordpress.org
Sat Jan 21 07:56:05 UTC 2023


#55150: `_wp_attachment_backup_sizes` meta is not deleted when image is restored
and IMAGE_EDIT_OVERWRITE is defined
-------------------------------------------------+-------------------------
 Reporter:  mitogh                               |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  6.2
Component:  Media                                |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch dev-feedback needs-        |     Focuses:
  testing                                        |  performance
-------------------------------------------------+-------------------------

Comment (by robinwpdeveloper):

 == Test Report
 This report validates that the indicated patch addresses the issue.

 Patch tested: https://patch-diff.githubusercontent.com/raw/WordPress
 /wordpress-develop/pull/3537.diff

 === Environment
 * OS: macOS 11.2.3
 * Web Server: Nginx
 * PHP: 7.4.30
 * WordPress: 6.2-alpha-54642-src
 * Browser: Chrome 109.0.5414.87
 * Theme: Twenty Twenty-Three
 * Active Plugins: No plugins activated

 === Actual Results

 - ✅ Expected result works as expected with patch.

 === Additional Notes
 - I have checked wp_postmeta table to verify the meta_key exists or not.
 Before Patch: _wp_attachment_backup_sizes meta_key appears in the
 wp_postmeta table
 After Patch: _wp_attachment_backup_sizes meta_key disappears.

 === Supplemental Artifacts
 Before Patch: https://d.pr/i/i0fStc
 After Patch 1 (before restoring image): https://d.pr/i/lc1rJB
 After Patch 2 (After restoring the image): https://d.pr/i/cvf2hl

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


More information about the wp-trac mailing list