Changes between Initial Version and Version 1 of Ticket #58309, comment 5
- Timestamp:
- 05/14/2023 06:39:56 PM (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #58309, comment 5
initial v1 1 1 I think we even can go for 2 2 3 {{{if ( 'gd' === get_resource_type( $image ) || $image instanceof GdImage }}}3 {{{if ( 'gd' === get_resource_type( $image ) || $image instanceof GdImage )}}} 4 4 5 5 because 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):