Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #58309, comment 5


Ignore:
Timestamp:
05/14/2023 06:39:56 PM (3 years ago)
Author:
Presskopp
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58309, comment 5

    initial v1  
    11I think we even can go for
    22
    3 {{{if ( 'gd' === get_resource_type( $image ) || $image instanceof GdImage}}}
     3{{{if ( 'gd' === get_resource_type( $image ) || $image instanceof GdImage )}}}
    44
    55because the function get_resource_type first checks if the given parameter is a resource and only if so, returns it's type, else 'unknown' (if I get this correctly):