Improve deprecation messages for WC_Logger

clear and remove *do* have alternatives. They have essentially
been moved to the file handler.
This commit is contained in:
Jon Surrell 2016-12-18 21:26:53 +01:00
parent 6068f681d3
commit f908a0181c
1 changed files with 4 additions and 4 deletions

View File

@ -211,24 +211,24 @@ class WC_Logger {
/**
* Clear entries from chosen file.
*
* @deprecated since 2.0.0
* @deprecated since 2.8
*
* @return bool
*/
public function clear() {
_deprecated_function( 'WC_Logger::clear', '2.8' );
_deprecated_function( 'WC_Logger::clear', '2.8', 'WC_Log_Handler_File::clear' );
return false;
}
/**
* Remove/delete the chosen file.
*
* @deprecated since 2.0.0
* @deprecated since 2.8
*
* @return bool
*/
public function remove() {
_deprecated_function( 'WC_Logger::remove', '2.8' );
_deprecated_function( 'WC_Logger::remove', '2.8', 'WC_Log_Handler_File::remove' );
return false;
}
}