Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #51780, comment 22


Ignore:
Timestamp:
02/24/2023 12:09:29 AM (4 years ago)
Author:
azaozz

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #51780, comment 22

    initial v1  
    55However I don't see a reason why plugin authors cannot use `image_get_intermediate_size()` for this. That's probably currently used anyways.
    66
    7 Another serious objection here is that this patch slows down `get_attached_file()` as it always does another DB request, no matter what file is attached.
     7Another serious objection here is that this patch slows down `get_attached_file()` as it always does another DB request looking for image meta, no matter what file is attached.
    88
    99In my opinion this patch should be reverted and moved to 6.3 or future release allowing for a better review whether this is really needed, and for better patch (new function) that doesn't reduce performance of get_attached_file()`.