WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #50833, comment 10


Ignore:
Timestamp:
08/16/2020 04:05:16 PM (3 months ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #50833, comment 10

    initial v1  
    44> Just plain showing or moving images generally won't need this `is_gd_image()` function, as the GD extension isn't needed for that. It is only image ''creation'' and/or ''editing'' which needs GD and therefore will need this function.
    55
    6 Thanks! I came to same conclusion and chose not to reopen the ticket at this time.
     6Thanks! I came to the same conclusion and chose not to reopen the ticket at this time.
    77
    88The only relevant instance in core seems to be `WP_REST_Attachments_Controller::edit_media_item()`, but it already requires `wp-admin/includes/image.php`, where `is_gd_image()` is defined.