You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

44 lines
941 B
PHTML

<?php
namespace DeployerForGit;
if ( ! class_exists( 'WP_Upgrader_Skin' ) ) {
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php';
}
if ( ! class_exists( 'Theme_Installer_Skin' ) ) {
require_once ABSPATH . 'wp-admin/includes/class-theme-installer-skin.php';
}
/**
* Class ThemeInstallerSkin
*
* @package DeployerForGit
*/
class ThemeInstallerSkin extends \Theme_Installer_Skin {
/**
* Override header method with empty function.
*/
public function header() {}
/**
* Override footer method with empty function.
*/
public function footer() {}
/**
* Override feedback method with empty function.
*
* @param string $feedback Message data.
* @param mixed ...$args Optional text replacements.
*/
public function feedback( $feedback, ...$args ) {}
/**
* Override error method with empty function.
*
* @param string|WP_Error $errors Errors.
*/
public function error( $errors ) {}
}