This repository has been archived on 2022-06-23. You can view files and clone it, but cannot push or open issues or pull requests.
divi/core/components/lib/SilentThemeUpgraderSkin.php
2021-12-07 11:08:05 +00:00

28 lines
603 B
PHP

<?php
require_once( ABSPATH . 'wp-admin/includes/class-wp-upgrader.php' );
if ( ! class_exists( 'ET_Core_LIB_SilentThemeUpgraderSkin' ) ):
/**
* Theme Upgrader skin which does not output feedback.
*
* @since 3.10
*
* @private
*/
class ET_Core_LIB_SilentThemeUpgraderSkin extends WP_Upgrader_Skin {
/**
* Override feedback method.
*
* @since 3.10
*
* @private
*
* @param string $string Feedback string.
* @param mixed ...$args Optional text replacements.
*/
public function feedback( $string, ...$args ) {
return; // Suppress all feedback.
}
}
endif;