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:
parent
6068f681d3
commit
f908a0181c
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue