Commit 4de4b72
committed
Media: Account for boolean false being returned by
Prior to PHP 8.5 a boolean value was silently ignored when being passed to `list()`, but in PHP 8.5 and higher this now triggers a PHP warning. This change adds an appropriate guard condition.
Props swissspidy, adamsilverstein
Fixes #64295
git-svn-id: https://develop.svn.wordpress.org/trunk@61291 602fd350-edb4-49c9-b593-d223f7449a82wp_getimagesize() when dealing with potentially invalid images in wp_read_image_metadata().1 parent f9e9f59 commit 4de4b72
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
827 | 827 | | |
828 | 828 | | |
829 | 829 | | |
830 | | - | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
831 | 837 | | |
832 | 838 | | |
833 | 839 | | |
| |||
0 commit comments