debug_fopen

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

WordPress Version: 5.4

/**
 * Open the file handle 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 string $filename File name.
 * @param string $mode     Type of access you required to the stream.
 * @return false Always false.
 */
function debug_fopen($filename, $mode)
{
    _deprecated_function(__FUNCTION__, '3.4.0', 'error_log()');
    return false;
}

WordPress Version: 4.9

/**
 * Open the file handle 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 string $filename File name.
 * @param string $mode     Type of access you required to the stream.
 * @return false Always false.
 */
function debug_fopen($filename, $mode)
{
    _deprecated_function(__FUNCTION__, '3.4.0', 'error_log()');
    return false;
}

WordPress Version: 4.6

/**
 * Open the file handle 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 string $filename File name.
 * @param string $mode     Type of access you required to the stream.
 * @return false Always false.
 */
function debug_fopen($filename, $mode)
{
    _deprecated_function(__FUNCTION__, 'error_log()');
    return false;
}

WordPress Version: 4.5

/**
 * Open the file handle 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 string $filename File name.
 * @param string $mode     Type of access you required to the stream.
 * @return false Always false.
 */
function debug_fopen($filename, $mode)
{
    _deprecated_function(__FUNCTION__, 'error_log()');
    return false;
}

WordPress Version: 4.4

/**
 * Open the file handle 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_fopen($filename, $mode)
{
    _deprecated_function(__FUNCTION__, 'error_log()');
    return false;
}

WordPress Version: 3.7

/**
 * Open the file handle for debugging.
 *
 * @since 0.71
 * @deprecated Use error_log()
 * @link http://www.php.net/manual/en/function.error-log.php
 * @deprecated 3.4.0
 */
function debug_fopen($filename, $mode)
{
    _deprecated_function(__FUNCTION__, 'error_log()');
    return false;
}