WordPress开发者和主题制作者的搜索引擎



debug_fwrite ›

Since0.71
已弃用3.4.0
debug_fwrite ( $fp, $string )
参数: (2)
  • (mixed) $fp Unused.
    Required: Yes
  • (string) $string Message to log.
    Required: Yes
链接:
查看:
  • error_log()
定义在:
文档:

Write contents to the file used for debugging.



源码

function debug_fwrite( $fp, $string ) {
	_deprecated_function( __FUNCTION__, '3.4.0', 'error_log()' );
	if ( ! empty( $GLOBALS['debug'] ) )
		error_log( $string );
}