WordPress Version: 6.1
/**
* Write contents to the file used for debugging.
*
* @since 0.71
* @deprecated 3.4.0 Use error_log()
* @see error_log()
*
* @link https://www.php.net/manual/en/function.error-log.php
*
* @param mixed $fp Unused.
* @param string $message Message to log.
*/
function debug_fwrite($fp, $message)
{
_deprecated_function(__FUNCTION__, '3.4.0', 'error_log()');
if (!empty($GLOBALS['debug'])) {
error_log($message);
}
}