Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #42437, comment 12


Ignore:
Timestamp:
05/15/2018 10:11:29 PM (7 years ago)
Author:
pbiron
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #42437, comment 12

    initial v1  
    2929only to find out that `$id_for_intermediate` was the ID for a previously uploaded file named `foo-150x150.jpg`.  That is, the `if ( $post_id ) {}` test at the top of my filter func was succeeding because there was an unknown to me attachment with `_wp_attached_file` postmeta with `meta_value = 'foo-150x150.jpg'`) :-(
    3030
    31 So, in addition to the serious data loss issue of previous uploads being overwritten identified in this ticket, the name collision problems between original image filenames and generated intermediate size filenames can have other undesirable "downstream" effects.
     31So, in addition to the serious data loss issue of previous uploads being overwritten identified in this ticket, the name collision problems between original image filenames containing "dimension"-like sub-strings and generated intermediate size filenames can have other undesirable "downstream" effects.
    3232