We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
media_handle_upload() only returns one WP_Error object which then might contain multiple errors. So we shouldn't store this error as an array but as a plain object.
media_handle_upload()
WP_Error
$this->error[] = $result;
should instead be
$this->error = $result;
Otherwise the error won't be displayed inside media_upload_form() as the filter returns an array containing a WP_Error instead of the object itself.
media_upload_form()
The text was updated successfully, but these errors were encountered:
@kraftner Are you sure that there might not be previous errors? In case there are, it might be better to merge, push or append to the errors-array.
Sorry, something went wrong.
kraftner
No branches or pull requests
media_handle_upload()
only returns oneWP_Error
object which then might contain multiple errors. So we shouldn't store this error as an array but as a plain object.should instead be
Otherwise the error won't be displayed inside
media_upload_form()
as the filter returns an array containing aWP_Error
instead of the object itself.The text was updated successfully, but these errors were encountered: