-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An error occurred cropping the image. #141
Comments
Update: Internal discussion with @ajmaurya99: https://10up.slack.com/archives/CG6QB7HEU/p1657221871321319 |
@jeffpaul Alright, did some digging. Looks like the image cropping is handled by core customize-control script which has the action "crop-image" and only users with admin capabilities can access customizer related settings. FYI: Roles & Caps So in our plugin we have nothing that prevents any editor or author to crop the avatar, it's the core customizer-control which prevents users other than admins to access that. |
@faisal-alvi Having the crop feature is useful for people when setting up their avatars because it's the personalization feature that they would expect to have in their profile page. So completely removing the crop feature may not be a good idea. Instead we could introduce a custom cropping feature using third-party library that goes well in par with WordPress and that could be a better solution. |
@jeffpaul Should we publish a new release (2.6.0) this month and tackle this "new crop tool" enhancement in a separate ticket and plan it for the next release (2.7.0)? (Optional) We can also remove the existing crop feature with 2.6.0 (with a note that it was only working for admin roles). Please share your thoughts. |
@faisal-alvi I think it's fine to keep as-is for now and can adjust for all roles with the new approach in the next release |
Closing after #150 |
Describe the bug
A new bug was reported on the support forum.
Another user:
Steps to Reproduce
Try to crop the image as an author or editor. It will show an error and the images won't be cropped.
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: