Theme_Installer_Skin::hide_process_failed() WordPress Method
The Theme_Installer_Skin::hide_process_failed() method is used to hide the process of installing a theme when it fails. This can be useful for debugging purposes.
Theme_Installer_Skin::hide_process_failed( WP_Error $wp_error ) #
Hides the process_failed
error when updating a theme by uploading a zip file.
Parameters
Return
(bool)
Source
File: wp-admin/includes/class-theme-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; }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.5.0 | Introduced. |