Description
Quick summary
When cropping a header image in Profile settings, I noticed PHP Warnings due to missing parameters for admin-ajax.
Warning: Undefined array key "context" in /var/www/html/wp-admin/includes/ajax-actions.php:4018
Warning: Undefined array key "dst_height" in /var/www/html/wp-admin/includes/ajax-actions.php:4020
Warning: Undefined array key "dst_width" in /var/www/html/wp-admin/includes/ajax-actions.php:4020
Steps to reproduce
- With the plugin active, go to Users > Profile.
- Select a header image and crop it.
- Save the changes.
- Check your error log for PHP Warnings.
Site owner impact
More than 60% of the total website/platform users
Severity
Minor
What other impact(s) does this issue have?
No response
If a workaround is available, please outline it here.
I also noticed that we still send users through the crop step, even when the selected image has been cropped previously, which results in duplicated images.
Activity