[wp-trac] [WordPress Trac] #50833: [PHP 8] GD resources are GdImage object instances
WordPress Trac
noreply at wordpress.org
Fri Aug 28 16:43:46 UTC 2020
#50833: [PHP 8] GD resources are GdImage object instances
-------------------------------------------+-------------------------------
Reporter: ayeshrajans | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.6
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: php8 has-patch needs-dev-note | Focuses: coding-standards
-------------------------------------------+-------------------------------
Comment (by SergeyBiryukov):
In [changeset:"48905" 48905]:
{{{
#!CommitTicketReference repository="" revision="48905"
Media: Make the `is_gd_image()` function available on front end.
This avoids a fatal error if a plugin calls image creation or editing
functions like `wp_imagecreatetruecolor()` outside of the admin.
Follow-up to [48798]
Props BackuPs.
Fixes #51174. See #50833.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50833#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list