Incorrect Assignment of Image Height Value in Dimensions Array

Created on 16 October 2024, about 1 month ago

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'];
📌 Task
Status

Active

Version

4.0

Component

Code

Created by

🇯🇴Jordan Ahmad Alyasaki

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024