- Issue created by @Ahmad Alyasaki
- Merge request !26Issue #3481063: Incorrect Assignment of Image Height Value in Dimensions Array → (Open) created by Ahmad Alyasaki
The issue in this code lies in how the dimensions array is populated, specifically in the height assignment. The following line in the code incorrectly assigns the width key to height:
$dimensions['width'] = $link['meta']['height'];
This line should store the height in the dimensions['height'] key, but instead, it assigns the height value to the width key. This causes both width and height values to be stored under the same width key, leading to incorrect dimension data.
Corrected Code
$dimensions['height'] = $link['meta']['height'];
Active
4.0
Code