Theme_Installer_Skin::hide_process_failed
Hides the process_failed error when updating a theme by uploading a zip file.
Method of the class: Theme_Installer_Skin{}
No Hooks.
Returns
true|false. True if the error should be hidden, false otherwise.
Usage
$Theme_Installer_Skin = new Theme_Installer_Skin(); $Theme_Installer_Skin->hide_process_failed( $wp_error );
- $wp_error(WP_Error) (required)
- WP_Error object.
Changelog
| Since 5.5.0 | Introduced. |
Theme_Installer_Skin::hide_process_failed() Theme Installer Skin::hide process failed code WP 6.8.3
public function hide_process_failed( $wp_error ) {
if (
'upload' === $this->type &&
'' === $this->overwrite &&
$wp_error->get_error_code() === 'folder_exists'
) {
return true;
}
return false;
}