mirror of
git://develop.git.wordpress.org/
synced 2025-04-03 03:33:32 +02:00
This avoids an error on PHP 8 caused by calling `wp_imagecreatetruecolor()` with inputs that aren't numeric, or are less than 0. Props hellofromtonya, Boniu91, metalandcoffee, SergeyBiryukov. Reviewed by SergeyBiryukov, iandunn. Merges [49751] to the 5.6 branch. Fixes #51937. git-svn-id: https://develop.svn.wordpress.org/branches/5.6@49753 602fd350-edb4-49c9-b593-d223f7449a82