Uses
Uses | Description |
---|---|
wp-includes/class-wp-error.php: WP_Error::get_error_code() | Retrieve first error code available. |
Hides the process_failed
error when updating a plugin by uploading a zip file.
(bool)
File: wp-admin/includes/class-plugin-installer-skin.php
public function hide_process_failed( $wp_error ) { if ( 'upload' === $this->type && '' === $this->overwrite && $wp_error->get_error_code() === 'folder_exists' ) { return true; } return false; }
Version | Description |
---|---|
5.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/plugin_installer_skin/hide_process_failed