Commit realizado el 12:13:52 08-04-2024
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
<?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() {}
|
||||
}
|
Reference in New Issue
Block a user