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.
49 lines
1.0 KiB
PHTML
49 lines
1.0 KiB
PHTML
8 months ago
|
<?php
|
||
|
namespace DeployerForGit;
|
||
|
|
||
|
if ( ! class_exists( 'WP_Upgrader_Skin' ) ) {
|
||
|
require_once ABSPATH . 'wp-admin/includes/class-wp-upgrader-skin.php';
|
||
|
}
|
||
|
|
||
|
if ( ! class_exists( 'Plugin_Installer_Skin' ) ) {
|
||
|
require_once ABSPATH . 'wp-admin/includes/class-plugin-installer-skin.php';
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Class PluginInstallerSkin
|
||
|
*
|
||
|
* @package DeployerForGit
|
||
|
*/
|
||
|
class PluginInstallerSkin extends \Plugin_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 ) {}
|
||
|
|
||
|
/**
|
||
|
* Override after method with empty function.
|
||
|
*/
|
||
|
public function after() {}
|
||
|
}
|