Commit 140bd89
committed
Media: Pass the appropriate reference into
With changes that were introduced in [49889] the second parameter for getimagesize() function is expecting a a reference.
Previously, most calls did not pass the 2nd param, and as a result, we are getting unexpected results.
This was only a problem with applications that are using a custom stream wrapper, and the image contained EXIF data.
For more see:
* humanmade/S3-Uploads#496
* aws/aws-sdk-php#1923
Fixes #52826.
Props terriann, SergeyBiryukov, Mista-Flo, hellofromTonya, rinatkhaziev, whyisjake.
git-svn-id: https://develop.svn.wordpress.org/trunk@50552 602fd350-edb4-49c9-b593-d223f7449a82wp_getimagesize.1 parent a6d69a3 commit 140bd89
2 files changed
Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
711 | 711 | | |
712 | 712 | | |
713 | 713 | | |
| 714 | + | |
714 | 715 | | |
715 | 716 | | |
716 | 717 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4975 | 4975 | | |
4976 | 4976 | | |
4977 | 4977 | | |
4978 | | - | |
4979 | | - | |
| 4978 | + | |
| 4979 | + | |
4980 | 4980 | | |
4981 | 4981 | | |
4982 | | - | |
| 4982 | + | |
4983 | 4983 | | |
4984 | 4984 | | |
4985 | 4985 | | |
4986 | 4986 | | |
4987 | 4987 | | |
4988 | 4988 | | |
4989 | 4989 | | |
4990 | | - | |
| 4990 | + | |
4991 | 4991 | | |
4992 | 4992 | | |
4993 | 4993 | | |
| |||
5001 | 5001 | | |
5002 | 5002 | | |
5003 | 5003 | | |
5004 | | - | |
| 5004 | + | |
5005 | 5005 | | |
0 commit comments