debug_fwrite

The timeline below displays how wordpress function debug_fwrite has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

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);
    }
}

WordPress Version: 5.4

/**
 * 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 $string Message to log.
 */
function debug_fwrite($fp, $string)
{
    _deprecated_function(__FUNCTION__, '3.4.0', 'error_log()');
    if (!empty($GLOBALS['debug'])) {
        error_log($string);
    }
}

WordPress Version: 4.9

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

WordPress Version: 4.6

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

WordPress Version: 4.5

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

WordPress Version: 4.4

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

WordPress Version: 3.7

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