Theme_Installer_Skin::hide_process_failed

Advertisement

Summery Summery

Hides the process_failed error when updating a theme by uploading a zip file.

Syntax Syntax

Theme_Installer_Skin::hide_process_failed( WP_Error $wp_error )

Parameters Parameters

$wp_error

(WP_Error) (Required) WP_Error.

Return Return

(bool)

Source 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;
	}

Advertisement

Changelog Changelog

Changelog
Version Description
5.5.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.