Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #56288


Ignore:
Timestamp:
07/26/2022 10:16:18 PM (22 months ago)
Author:
adamsilverstein
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56288 – Description

    v1 v2  
    66
    77= Considerations =
    8 This initial proposal is to add a new "output_mimes" boolean parameter to the `add_image_size` function. I also considered instead adding an `$output_options` (keyed) array parameter, this would then have an option for `output_mimes` and in the future we could use this to enable a quality setting per size which we have discussed elsewhere already.
     8This proposal is to add a new `$output_mimes` boolean parameter to the `add_image_size` function. I also considered instead adding an `$output_options` (keyed) array parameter, this would then have an option for `output_mimes` and in the future we could use this to enable a quality setting per size which we have discussed elsewhere already.
    99
    10 I decided to keep this PR simple by using a boolean vs an array because that is all we need now. I would appreciate feedback on this approach.
     10I decided to keep this PR simple by using a boolean vs an array because that is all we need now. I would appreciate feedback on this approach in addition to the code here or on the PR.